sdl: scale window dimensions by DPI on initialization

This commit is contained in:
Hoe Hao Cheng 2023-08-02 22:30:07 +08:00
parent eda5f355bd
commit 7221e39a03

View file

@ -923,7 +923,7 @@ int main(int argc, char *argv[]) {
float dpi_scale = 1.0f / (g_ForcedDPI == 0.0f ? g_DesktopDPI : g_ForcedDPI);
UpdateScreenScale(w, h);
UpdateScreenScale(w * g_DesktopDPI, h * g_DesktopDPI);
bool useEmuThread = g_Config.iGPUBackend == (int)GPUBackend::OPENGL;