Skip to content

Commit

Permalink
Force 4:3/16:9 aspect ratio for unfiltered modes
Browse files Browse the repository at this point in the history
Fixes #23
  • Loading branch information
ata4 committed Oct 3, 2017
1 parent 6eeb449 commit 0996db5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions core/vi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1598,10 +1598,17 @@ static void vi_process_fast(void)

static void vi_process_end_fast(void)
{
screen_upload(prescale, hres_raw, vres_raw, hres_raw, vres_raw);
int output_height;
if (config->vi.widescreen) {
output_height = hres_raw * 9 / 16;
} else {
output_height = hres_raw * 3 / 4;
}

screen_upload(prescale, hres_raw, vres_raw, hres_raw, output_height);

if (screenshot_path[0]) {
vi_screenshot_write(screenshot_path, prescale, hres_raw, vres_raw, hres_raw, vres_raw);
vi_screenshot_write(screenshot_path, prescale, hres_raw, vres_raw, hres_raw, output_height);
screenshot_path[0] = 0;
}
}
Expand Down

0 comments on commit 0996db5

Please sign in to comment.