From 0e22651c48087da62d8c719384af42d3c7e2968f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 1 Jan 2020 00:21:06 +0100 Subject: [PATCH] (UWP) Not setting EGLRenderResolutionScaleProperty fixes DPI scaling issues --- uwp/uwp_main.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/uwp/uwp_main.cpp b/uwp/uwp_main.cpp index d45161028d..7d5f139d2d 100644 --- a/uwp/uwp_main.cpp +++ b/uwp/uwp_main.cpp @@ -652,12 +652,9 @@ extern "C" { EGL_NONE, }; - double scale = DisplayInformation::GetForCurrentView()->RawPixelsPerViewPixel; - /* Why Microsoft uses a WinRT class for sending parameters to EGL?! */ PropertySet^ prop = ref new PropertySet(); prop->Insert(L"EGLNativeWindowTypeProperty", CoreWindow::GetForCurrentThread()); - prop->Insert(L"EGLRenderResolutionScaleProperty", PropertyValue::CreateSingle(scale)); egl->surf = eglCreateWindowSurface(egl->dpy, egl->config, (EGLNativeWindowType)(prop), window_attribs);