From 6994ff3ab78b1d162bd52be4316c640e1cc13256 Mon Sep 17 00:00:00 2001 From: tunip3 <26260613+tunip3@users.noreply.github.com> Date: Mon, 23 May 2022 22:55:41 +0100 Subject: [PATCH] add display res matching --- gfx/drivers_context/uwp_egl_ctx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); } }