1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

Moved HOOK_GDI_FUNCTION macro to resuable scope

This commit is contained in:
narzoul 2016-03-19 13:26:34 +01:00
parent 27eec14ee1
commit 0b5247d93d
3 changed files with 4 additions and 8 deletions

View File

@ -10,6 +10,9 @@
#define CALL_ORIG_GDI(func) CompatGdi::getOrigFuncPtr<decltype(&func), &func>()
#define HOOK_GDI_FUNCTION(module, func, newFunc) \
CompatGdi::hookGdiFunction<decltype(&func), &func>(#module, #func, &newFunc)
namespace CompatGdi
{
class GdiScopedThreadLock

View File

@ -207,9 +207,6 @@ namespace
}
}
#define HOOK_GDI_FUNCTION(module, func, newFunc) \
CompatGdi::hookGdiFunction<decltype(&func), &func>(#module, #func, &newFunc);
namespace CompatGdiCaret
{
void installHooks()

View File

@ -128,13 +128,9 @@ namespace
}
}
#define HOOK_GDI_FUNCTION(module, func, newFunc) \
CompatGdi::hookGdiFunction<decltype(&func), &func>( \
#module, #func, &newFunc);
#define HOOK_GDI_DC_FUNCTION(module, func) \
CompatGdi::hookGdiFunction<decltype(&func), &func>( \
#module, #func, getCompatGdiDcFuncPtr<decltype(&func), &func>(&func));
#module, #func, getCompatGdiDcFuncPtr<decltype(&func), &func>(&func))
#define HOOK_GDI_TEXT_DC_FUNCTION(module, func) \
HOOK_GDI_DC_FUNCTION(module, func##A); \