mirror of
https://github.com/libretro/RetroArch
synced 2025-03-23 19:21:03 +00:00
(UWP) Not setting EGLRenderResolutionScaleProperty fixes DPI scaling issues
This commit is contained in:
parent
fa6ce5bc68
commit
0e22651c48
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user