some more risky timing changes
[picodrive.git] / pico / draw.c
index 5e8d86b..e2e4fb4 100644 (file)
@@ -1553,13 +1553,14 @@ void PicoDrawSync(int to, int blank_last_line)
 \r
   pprof_start(draw);\r
 \r
-  if (rendlines != 240)\r
+  if (rendlines != 240) {\r
     offs = 8;\r
+    if (to > 223)\r
+      to = 223;\r
+  }\r
 \r
   for (line = Pico.est.DrawScanline; line < to; line++)\r
-  {\r
     PicoLine(line, offs, sh, bgc);\r
-  }\r
 \r
   // last line\r
   if (line <= to)\r