X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fmode4.c;h=22e30419b57b64712fe8fa97b86a08f20184127e;hb=6901d0e45dbf77671d86cb9bf9af98c486db97c8;hp=4588a9a2d3db826a8ebceb6e034c29c7a53f16a4;hpb=5a68108691ed5685682ce133aa0bcf6015c0afd8;p=picodrive.git diff --git a/pico/mode4.c b/pico/mode4.c index 4588a9a..22e3041 100644 --- a/pico/mode4.c +++ b/pico/mode4.c @@ -1,3 +1,10 @@ +/* + * mode4/SMS renderer + * (C) notaz, 2009-2010 + * + * This work is licensed under the terms of MAME license. + * See COPYING file in the top-level directory. + */ /* * TODO: * - TMS9918 modes? @@ -207,9 +214,9 @@ void PicoFrameStartMode4(void) } if (rendstatus != rendstatus_old || lines != rendlines) { + emu_video_mode_change(screen_offset, lines, 1); rendstatus_old = rendstatus; rendlines = lines; - emu_video_mode_change(screen_offset, lines, 1); } DrawLineDest = (char *)DrawLineDestBase + screen_offset * DrawLineDestIncrement; @@ -260,6 +267,7 @@ void PicoDoHighPal555M4(void) t |= (t >> 4) & 0x08610861; *dpal = t; } + HighPal[0xe0] = 0; } static void FinalizeLineRGB555M4(int line)