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:
notaz 2009-10-05 15:59:08 +00:00
parent 602c28cac1
commit ae87bffa06
6 changed files with 59 additions and 39 deletions

View file

@ -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);
}
}