From 67a83e3c212fe3052859b244b6fec7a023546932 Mon Sep 17 00:00:00 2001 From: illusion98 <37698908+illusion98@users.noreply.github.com> Date: Wed, 22 Jan 2020 09:31:39 +0700 Subject: [PATCH] automatic aspect ratio change aspect ratio will now change if internal resolution is set to anything 4:3 (i.e 640x480, 1024x768, 1600x1200.. etc.) --- src/xenia/kernel/xboxkrnl/xboxkrnl_video.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xenia/kernel/xboxkrnl/xboxkrnl_video.cc b/src/xenia/kernel/xboxkrnl/xboxkrnl_video.cc index b1399fff1..70cd40c04 100644 --- a/src/xenia/kernel/xboxkrnl/xboxkrnl_video.cc +++ b/src/xenia/kernel/xboxkrnl/xboxkrnl_video.cc @@ -139,7 +139,8 @@ void VdQueryVideoMode(pointer_t video_mode) { video_mode->display_width = cvars::internal_tile_width; video_mode->display_height = cvars::internal_tile_height; video_mode->is_interlaced = 0; - video_mode->is_widescreen = 1; + video_mode->is_widescreen = ((video_mode->display_width / 4) > + (video_mode->display_height / 3)); video_mode->is_hi_def = 1; video_mode->refresh_rate = 60.0f; video_mode->video_standard = 1; // NTSC