osgViewer: fix build with GCC < 6.x
Tested during cross-compilation for MS Windows using MinGW.
This commit is contained in:
parent
81998b0e65
commit
b5fa3653fe
@ -799,7 +799,7 @@ Win32WindowingSystem::Win32WindowingSystem()
|
|||||||
if (hModuleShore) {
|
if (hModuleShore) {
|
||||||
setProcessDpiAwareness = (SetProcessDpiAwarenessFunc *) GetProcAddress(hModuleShore, "SetProcessDpiAwareness");
|
setProcessDpiAwareness = (SetProcessDpiAwarenessFunc *) GetProcAddress(hModuleShore, "SetProcessDpiAwareness");
|
||||||
if (setProcessDpiAwareness) {
|
if (setProcessDpiAwareness) {
|
||||||
(*setProcessDpiAwareness)(PROCESS_DPI_AWARENESS::PROCESS_PER_MONITOR_DPI_AWARE);
|
(*setProcessDpiAwareness)(PROCESS_PER_MONITOR_DPI_AWARE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
|
Loading…
Reference in New Issue
Block a user