mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
fbaccel: auto-blit, obsoleting the explicit blit() calls
probably needs refining on some platforms
This commit is contained in:
@@ -786,7 +786,7 @@ bool CFrameBuffer::paintIcon8(const std::string & filename, const int x, const i
|
||||
d += stride;
|
||||
}
|
||||
close(lfd);
|
||||
blit();
|
||||
accel->blit();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1081,12 +1081,12 @@ void CFrameBuffer::paintBackground()
|
||||
for (int i = 0; i < 576; i++)
|
||||
memmove(((uint8_t *)getFrameBufferPointer()) + i * stride, (background + i * BACKGROUNDIMAGEWIDTH), BACKGROUNDIMAGEWIDTH * sizeof(fb_pixel_t));
|
||||
checkFbArea(0, 0, xRes, yRes, false);
|
||||
accel->blit();
|
||||
}
|
||||
else
|
||||
{
|
||||
paintBoxRel(0, 0, xRes, yRes, backgroundColor);
|
||||
}
|
||||
blit();
|
||||
}
|
||||
|
||||
void CFrameBuffer::SaveScreen(int x, int y, int dx, int dy, fb_pixel_t * const memp)
|
||||
@@ -1131,7 +1131,7 @@ void CFrameBuffer::RestoreScreen(int x, int y, int dx, int dy, fb_pixel_t * cons
|
||||
fbpos += stride;
|
||||
bkpos += dx;
|
||||
}
|
||||
blit();
|
||||
accel->blit();
|
||||
checkFbArea(x, y, dx, dy, false);
|
||||
}
|
||||
|
||||
@@ -1253,7 +1253,6 @@ void CFrameBuffer::paintMuteIcon(bool paint, int ax, int ay, int dx, int dy, boo
|
||||
}
|
||||
else
|
||||
paintBackgroundBoxRel(ax, ay, dx, dy);
|
||||
blit();
|
||||
}
|
||||
|
||||
void CFrameBuffer::setFbArea(int element, int _x, int _y, int _dx, int _dy)
|
||||
|
Reference in New Issue
Block a user