diff --git a/NEWS b/NEWS index d4da23f2..9ec9e091 100644 --- a/NEWS +++ b/NEWS @@ -9,7 +9,7 @@ a mistake. v0.x.x (xxxx-xx-xx) ------------------- -- Properly support DPI scaling on Linux. +- Properly support DPI scaling on Linux (requires GLFW 3.3). - Added early checks for output file validity in the capture utility. - Improvements to presence broadcast handling. - Custom zone colors can be optionally ignored. diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 64dc295a..b9bd81bc 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -278,6 +278,7 @@ int main( int argc, char** argv ) if( dll != INVALID_HANDLE_VALUE ) getDpiForSystem = (GDFS)GetProcAddress(dll, "GetDpiForSystem"); if( getDpiForSystem ) dpiScale = getDpiForSystem() / 96.f; #elif defined __linux__ +# if GLFW_VERSION_MAJOR > 3 || ( GLFW_VERSION_MAJOR == 3 && GLFW_VERSION_MINOR >= 3 ) auto monitor = glfwGetWindowMonitor( window ); if( !monitor ) monitor = glfwGetPrimaryMonitor(); if( monitor ) @@ -286,6 +287,7 @@ int main( int argc, char** argv ) glfwGetMonitorContentScale( monitor, &x, &y ); dpiScale = x; } +# endif #endif // Setup ImGui binding