diff --git a/gfx/drivers/gl2.c b/gfx/drivers/gl2.c index 361ff1b4f5..571ee0ec75 100644 --- a/gfx/drivers/gl2.c +++ b/gfx/drivers/gl2.c @@ -4014,9 +4014,9 @@ static bool gl2_alive(void *data) #ifdef __WINRT__ if (is_running_on_xbox()) { - //we can set it to 1920x1080 as xbox uwp windowsize is guaranteed to be 1920x1080 and currently there is now way to set angle to use a variable resolution swapchain so regardless of the size the window is always 1080p - temp_width = 1920; - temp_height = 1080; + //match the output res to the display res + temp_width = uwp_get_width(); + temp_height = uwp_get_height(); } #endif if (quit) diff --git a/gfx/drivers_context/uwp_egl_ctx.c b/gfx/drivers_context/uwp_egl_ctx.c index ad03ea14f7..0ae9d559c4 100644 --- a/gfx/drivers_context/uwp_egl_ctx.c +++ b/gfx/drivers_context/uwp_egl_ctx.c @@ -148,9 +148,9 @@ static void gfx_ctx_uwp_get_video_size(void *data, win32_check_window(NULL, &quit, &resize, width, height); if (is_running_on_xbox()) { - //we can set it to 1920x1080 as xbox uwp windowsize is guaranteed to be 1920x1080 and currently there is now way to set angle to use a variable resolution swapchain so regardless of the size the window is always 1080p - width = 1920; - height = 1080; + //match the output res to the display res + width = uwp_get_width(); + height = uwp_get_height(); } } diff --git a/pkg/msvc-uwp/RetroArch-msvc2019-UWP/ANGLE/README.md b/pkg/msvc-uwp/RetroArch-msvc2019-UWP/ANGLE/README.md index 7541da6028..dc14fce250 100755 --- a/pkg/msvc-uwp/RetroArch-msvc2019-UWP/ANGLE/README.md +++ b/pkg/msvc-uwp/RetroArch-msvc2019-UWP/ANGLE/README.md @@ -1,2 +1,2 @@ # ANGLE prebuilt libraries -The binaries in this folder is compiled from [ANGLE](https://github.com/google/angle) commit 1fdf6ca5141d8e349e875eab6e51d93d929a7f0e. \ No newline at end of file +The binaries in this folder is compiled from a patched version of [ANGLE](https://github.com/xbox-homebrew/angle) with display res matching for xbox commit {239b5a4dff4338c3ae39dbd5399477f65a16ad87}. diff --git a/pkg/msvc-uwp/RetroArch-msvc2019-UWP/ANGLE/Win32/libEGL.lib b/pkg/msvc-uwp/RetroArch-msvc2019-UWP/ANGLE/Win32/libEGL.lib index c4e504ca43..1d1b43de11 100755 Binary files a/pkg/msvc-uwp/RetroArch-msvc2019-UWP/ANGLE/Win32/libEGL.lib and b/pkg/msvc-uwp/RetroArch-msvc2019-UWP/ANGLE/Win32/libEGL.lib differ diff --git a/pkg/msvc-uwp/RetroArch-msvc2019-UWP/ANGLE/x64/libEGL.lib b/pkg/msvc-uwp/RetroArch-msvc2019-UWP/ANGLE/x64/libEGL.lib index 08364cf3e0..60b1aca240 100755 Binary files a/pkg/msvc-uwp/RetroArch-msvc2019-UWP/ANGLE/x64/libEGL.lib and b/pkg/msvc-uwp/RetroArch-msvc2019-UWP/ANGLE/x64/libEGL.lib differ