fbaccel: mark framebuffer dirty when drawing lines

This commit is contained in:
Stefan Seyfried
2015-02-21 19:48:12 +01:00
parent 0bc265c496
commit c4b24d8734

View File

@@ -395,6 +395,7 @@ void CFbAccel::paintRect(const int x, const int y, const int dx, const int dy, c
*fbs = col; *fbs = col;
fbs += DEFAULT_XRES; fbs += DEFAULT_XRES;
} }
mark(x , y, x + 1, y + dy);
return; return;
} }
if (dy == 1) { if (dy == 1) {
@@ -403,6 +404,7 @@ void CFbAccel::paintRect(const int x, const int y, const int dx, const int dy, c
fb_pixel_t *fbe = fbs + dx; fb_pixel_t *fbe = fbs + dx;
while (fbs < fbe) while (fbs < fbe)
*fbs++ = col; *fbs++ = col;
mark(x , y, x + dx, y + 1);
return; return;
} }