1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Enforce DPI scale setup on first render frame.

Not all backends know their DPI before window is available.
This commit is contained in:
Bartosz Taudul
2024-09-28 13:54:39 +02:00
parent 04b921e200
commit 44ae59f363
3 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -222,7 +222,7 @@ struct Output
};
static std::unordered_map<uint32_t, std::unique_ptr<Output>> s_output;
static int s_maxScale = 120;
static int s_prevScale = 120;
static int s_prevScale = -1;
static bool s_running = true;
static int s_width, s_height;