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

View File

@@ -20,7 +20,7 @@ static EGLDisplay s_eglDpy;
static EGLContext s_eglCtx;
static EGLSurface s_eglSurf;
static float s_prevScale;
static float s_prevScale = -1;
static int s_width, s_height;
static uint64_t s_time;
static const char* s_prevCursor = nullptr;