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:
parent
27eec14ee1
commit
0b5247d93d
@ -10,6 +10,9 @@
|
|||||||
|
|
||||||
#define CALL_ORIG_GDI(func) CompatGdi::getOrigFuncPtr<decltype(&func), &func>()
|
#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
|
namespace CompatGdi
|
||||||
{
|
{
|
||||||
class GdiScopedThreadLock
|
class GdiScopedThreadLock
|
||||||
|
@ -207,9 +207,6 @@ namespace
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#define HOOK_GDI_FUNCTION(module, func, newFunc) \
|
|
||||||
CompatGdi::hookGdiFunction<decltype(&func), &func>(#module, #func, &newFunc);
|
|
||||||
|
|
||||||
namespace CompatGdiCaret
|
namespace CompatGdiCaret
|
||||||
{
|
{
|
||||||
void installHooks()
|
void installHooks()
|
||||||
|
@ -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) \
|
#define HOOK_GDI_DC_FUNCTION(module, func) \
|
||||||
CompatGdi::hookGdiFunction<decltype(&func), &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) \
|
#define HOOK_GDI_TEXT_DC_FUNCTION(module, func) \
|
||||||
HOOK_GDI_DC_FUNCTION(module, func##A); \
|
HOOK_GDI_DC_FUNCTION(module, func##A); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user