Skip to content

Commit f6ebbb4

Browse files
committed
hosted: screen_thread(): fix flickering of first picture line
1 parent fb73655 commit f6ebbb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hosted/Arduino.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ int screen_thread(void *p)
352352
// picture line is; here, we only draw protolines.
353353

354354
// draw SDL screen border top (before start of picture)
355-
for (int i = 1; i < (STARTLINE - VIEWPORT_Y)*STRETCH_Y; ++i) {
355+
for (int i = 1; i < int((STARTLINE - VIEWPORT_Y)*STRETCH_Y); ++i) {
356356
memcpy(p, screen->pixels, screen->pitch);
357357
p += screen->pitch;
358358
}

0 commit comments

Comments
 (0)