Skip to content

Commit

Permalink
hosted: screen_thread(): fix flickering of first picture line
Browse files Browse the repository at this point in the history
  • Loading branch information
uli committed Jul 10, 2018
1 parent fb73655 commit f6ebbb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hosted/Arduino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ int screen_thread(void *p)
// picture line is; here, we only draw protolines.

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

0 comments on commit f6ebbb4

Please sign in to comment.