(UWP) Not setting EGLRenderResolutionScaleProperty fixes DPI scaling issues

This commit is contained in:
twinaphex 2020-01-01 00:21:06 +01:00
parent fa6ce5bc68
commit 0e22651c48

View File

@ -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);