From b5fa3653fe62ab18a4d2a6fb08d4f2484f678265 Mon Sep 17 00:00:00 2001 From: Boris Pek Date: Wed, 10 Oct 2018 02:00:35 +0300 Subject: [PATCH] osgViewer: fix build with GCC < 6.x Tested during cross-compilation for MS Windows using MinGW. --- src/osgViewer/GraphicsWindowWin32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgViewer/GraphicsWindowWin32.cpp b/src/osgViewer/GraphicsWindowWin32.cpp index b38423c1b..b1dd48281 100644 --- a/src/osgViewer/GraphicsWindowWin32.cpp +++ b/src/osgViewer/GraphicsWindowWin32.cpp @@ -799,7 +799,7 @@ Win32WindowingSystem::Win32WindowingSystem() if (hModuleShore) { setProcessDpiAwareness = (SetProcessDpiAwarenessFunc *) GetProcAddress(hModuleShore, "SetProcessDpiAwareness"); if (setProcessDpiAwareness) { - (*setProcessDpiAwareness)(PROCESS_DPI_AWARENESS::PROCESS_PER_MONITOR_DPI_AWARE); + (*setProcessDpiAwareness)(PROCESS_PER_MONITOR_DPI_AWARE); } } // #endif