mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
platform, fix vertical scaling, aspect ratio handling (gp2x, psp)
This commit is contained in:
parent
ace184013b
commit
495fe1fdad
2 changed files with 17 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue