platform, fix vertical scaling, aspect ratio handling (gp2x, psp)

This commit is contained in:
kub 2021-11-10 23:08:49 +01:00
parent ace184013b
commit 495fe1fdad
2 changed files with 17 additions and 2 deletions

View file

@ -679,6 +679,12 @@ void plat_update_volume(int has_changed, int is_up)
/* prepare for MD screen mode change */
void emu_video_mode_change(int start_line, int line_count, int start_col, int col_count)
{
/* NTSC always has 224 visible lines, anything smaller has bars */
if (line_count < 224 && line_count > 144) {
start_line -= (224-line_count) /2;
line_count = 224;
}
out_y = start_line; out_x = start_col;
out_h = line_count; out_w = col_count;