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:
illusion 2020-01-22 09:31:55 +11:00
parent 99ff1c9b19
commit 0a2489d44c
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