Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-07-28 01:31:10 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-07-28 01:31:10 +0300
commitaa07820eb73e631254371f0aa411f6b9b267b1e7 (patch)
tree62f5edf7a39df10979501d2893e12ba268b7f41b /profiler
parentb86f1a907a44d5aab2d7cb824bab9164fdbbfbc7 (diff)
Rely solely on GLFW DPI handling.
Diffstat (limited to 'profiler')
-rw-r--r--profiler/src/main.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp
index 6dde4156..e9662eb0 100644
--- a/profiler/src/main.cpp
+++ b/profiler/src/main.cpp
@@ -220,16 +220,6 @@ int main( int argc, char** argv )
backend.SetIcon( iconPx, iconX, iconY );
bptr = &backend;
-#if 0
-#ifdef _WIN32
- typedef UINT(*GDFS)(void);
- GDFS getDpiForSystem = nullptr;
- HMODULE dll = GetModuleHandleW(L"user32.dll");
- if( dll != INVALID_HANDLE_VALUE ) getDpiForSystem = (GDFS)GetProcAddress(dll, "GetDpiForSystem");
- if( getDpiForSystem ) dpiScale = getDpiForSystem() / 96.f;
-#endif
-#endif
-
dpiScale = backend.GetDpiScale();
const auto envDpiScale = getenv( "TRACY_DPI_SCALE" );
if( envDpiScale )