Merge pull request #13964 from 5th-fork/master

[UWP] add support for 4k to angle on xbox
This commit is contained in:
LibretroAdmin 2022-05-27 15:10:33 +01:00 committed by GitHub
commit 16c0f5e223
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View File

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

View File

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

View File

@ -1,2 +1,2 @@
# ANGLE prebuilt libraries
The binaries in this folder is compiled from [ANGLE](https://github.com/google/angle) commit 1fdf6ca5141d8e349e875eab6e51d93d929a7f0e.
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}.