add display res matching

This commit is contained in:
tunip3 2022-05-23 22:55:41 +01:00 committed by GitHub
parent 6c6d16e978
commit 6994ff3ab7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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