mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
improved game vidmode change detection; some iface changes
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@803 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
602c28cac1
commit
ae87bffa06
6 changed files with 59 additions and 39 deletions
|
@ -193,11 +193,10 @@ void PicoFrameStartMode4(void)
|
|||
int lines = 192;
|
||||
skip_next_line = 0;
|
||||
screen_offset = 24;
|
||||
rendstatus = 0;
|
||||
rendstatus = PDRAW_32_COLS;
|
||||
|
||||
if ((Pico.video.reg[0] & 6) == 6 && (Pico.video.reg[1] & 0x18)) {
|
||||
if (Pico.video.reg[1] & 0x08) {
|
||||
rendstatus |= PDRAW_240LINES;
|
||||
screen_offset = 0;
|
||||
lines = 240;
|
||||
}
|
||||
|
@ -207,8 +206,9 @@ void PicoFrameStartMode4(void)
|
|||
}
|
||||
}
|
||||
|
||||
if (rendstatus != rendstatus_old) {
|
||||
if (rendstatus != rendstatus_old || lines != rendlines) {
|
||||
rendstatus_old = rendstatus;
|
||||
rendlines = lines;
|
||||
emu_video_mode_change(screen_offset, lines, 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue