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 committed by Gliniak
parent bdd431cd4a
commit 357d9adfca
1 changed files with 2 additions and 1 deletions

View File

@ -137,7 +137,8 @@ void VdQueryVideoMode(X_VIDEO_MODE* video_mode) {
video_mode->display_width = 1280;
video_mode->display_height = 720;
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