Merge pull request #642 from tehnick/fix-build-with-gcc5.x

osgViewer: fix build with GCC < 6.x
This commit is contained in:
OpenSceneGraph git repository 2018-10-10 18:29:24 +01:00 committed by GitHub
commit 68a9eb237b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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