X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fmode4.c;h=1462dde5de7613af5d4d4d4066498f59d1b15587;hb=ae87bffa0696eeb18ffb8d283992bc3881e8f241;hp=104cf4984488c1dca058565d382f8b3e9ed2c526;hpb=602c28cac19e78c6404783fc38bbf232af70128c;p=picodrive.git diff --git a/pico/mode4.c b/pico/mode4.c index 104cf49..1462dde 100644 --- a/pico/mode4.c +++ b/pico/mode4.c @@ -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); } }