mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 13:28:40 +00:00
old windows dpi awareness paths
This commit is contained in:
@@ -831,6 +831,21 @@ os_gfx_init(void)
|
|||||||
{
|
{
|
||||||
SetProcessDpiAwarenessContext_func(w32_DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);
|
SetProcessDpiAwarenessContext_func(w32_DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
HMODULE shcore = LoadLibraryA("shcore.dll");
|
||||||
|
if(shcore)
|
||||||
|
{
|
||||||
|
typedef HRESULT (WINAPI* SetProcessDpiAwareness_t)(int);
|
||||||
|
SetProcessDpiAwareness_t SetProcessDpiAwareness = (void*)GetProcAddress(shcore, "SetProcessDpiAwareness");
|
||||||
|
if(SetProcessDpiAwareness)
|
||||||
|
{
|
||||||
|
SetProcessDpiAwareness(2);
|
||||||
|
}
|
||||||
|
FreeLibrary(shcore);
|
||||||
|
}
|
||||||
|
SetProcessDPIAware();
|
||||||
|
}
|
||||||
|
|
||||||
//- rjf: register graphical-window class
|
//- rjf: register graphical-window class
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user