diff options
author | Kissaki <kissaki@gmx.de> | 2013-11-24 22:20:24 +0400 |
---|---|---|
committer | Kissaki <kissaki@gmx.de> | 2013-11-24 22:20:24 +0400 |
commit | dfbc1b927934471db3ae006353b5a15617cadcdf (patch) | |
tree | 64752eef68bc9838899d98aa8841199f542f8865 /overlay/dxgi.cpp | |
parent | 250835e83b5adff49601fde90ceec865c3dd9bd7 (diff) |
Overlay: Changes as per PR-comments
* Make cpp-local functions static so they are local file/translation unit
scope.
* Remove unused variables uiAudioCount and bVideoHooked
* Comment extern declarations, where there definitions are located.
* Improve constant naming JUMPOP_OFFSET => JMP_OP_SIZE.
* Remove extern declaration from method definitions.
* Adjust type declaration formatting to typical formatting.
* Use voidFunc typedef to pass around function address pointers.
** C++-style casts instead of C-style raw casts.
* Other minor formatting (/whitespace) adjustments
* Fix log text.
* Improve log text.
* Consistent, improved varnaming in d3d9.cpp on address calculation;
naming fn and base.
Diffstat (limited to 'overlay/dxgi.cpp')
-rw-r--r-- | overlay/dxgi.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/overlay/dxgi.cpp b/overlay/dxgi.cpp index de1e11503..69a1b8c93 100644 --- a/overlay/dxgi.cpp +++ b/overlay/dxgi.cpp @@ -47,6 +47,7 @@ typedef HRESULT(__stdcall *ResizeBuffersType)(IDXGISwapChain *, UINT, UINT, UINT #define HMODREF(mod, func) func##Type p##func = (func##Type) GetProcAddress(mod, #func) +// From d3d10.cpp extern HRESULT presentD3D10(IDXGISwapChain *pSwapChain); static HRESULT __stdcall myPresent(IDXGISwapChain *pSwapChain, UINT SyncInterval, UINT Flags) { @@ -67,6 +68,7 @@ static HRESULT __stdcall myPresent(IDXGISwapChain *pSwapChain, UINT SyncInterval return hr; } +// From d3d10.cpp extern void resizeD3D10(IDXGISwapChain *pSwapChain); static HRESULT __stdcall myResize(IDXGISwapChain *pSwapChain, UINT BufferCount, UINT Width, UINT Height, DXGI_FORMAT NewFormat, UINT SwapChainFlags) { @@ -153,7 +155,8 @@ void hookDXGI(HMODULE hDXGI, bool preonly) { } } -extern void PrepareDXGI10(IDXGIAdapter1* pAdapter, bool initializeDXGIData); +// From d3d10.cpp +extern void PrepareDXGI10(IDXGIAdapter1 *pAdapter, bool initializeDXGIData); /// This function is called by the Mumble client in Mumble's scope /// mainly to extract the offsets of various functions in the IDXGISwapChain |