automatic aspect ratio change

aspect ratio will now change if internal resolution is set to anything 4:3 (i.e 640x480, 1024x768, 1600x1200.. etc.)
This commit is contained in:
illusion98 2020-01-22 09:31:39 +07:00 committed by illusion
parent 0c260b5cfa
commit 67a83e3c21
1 changed files with 2 additions and 1 deletions

View File

@ -139,7 +139,8 @@ void VdQueryVideoMode(pointer_t<X_VIDEO_MODE> 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