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