mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Don't require GLFW 3.3.
This commit is contained in:
parent
e3d690df63
commit
1d106097e3
2
NEWS
2
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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user