]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
vpos + 1 is last line only if previous line wasn't last line (line jump)
authorToni Wilen <twilen@winuae.net>
Wed, 16 Jul 2025 08:18:59 +0000 (11:18 +0300)
committerToni Wilen <twilen@winuae.net>
Wed, 16 Jul 2025 08:18:59 +0000 (11:18 +0300)
custom.cpp

index f9a98039c0b0e3fb7718478912915c5858783172..81991b4eb668635a89190e8aa5bd5ab2684c6c8c 100644 (file)
@@ -867,7 +867,7 @@ static void setclr(uae_u16 *p, uae_u16 val)
 // is last display line?
 static bool is_last_line(void)
 {
-       return  vpos == vsync_startline || vpos + 1 == vsync_startline;
+       return  vpos == vsync_startline || (vpos + 1 == vsync_startline && vpos_prev + 1 != vsync_startline - 1);
 }
 
 static void docols(struct color_entry *colentry)