mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
neutrino: adapt framebuffer_spark to recent changes
This commit is contained in:
@@ -783,7 +783,7 @@ bool CFrameBuffer::blitToPrimary(unsigned int *, int, int, int, int)
|
|||||||
if height h is given, center vertically between y and y+h
|
if height h is given, center vertically between y and y+h
|
||||||
offset is a color offset (probably only useful with palette) */
|
offset is a color offset (probably only useful with palette) */
|
||||||
bool CFrameBuffer::paintIcon(const std::string & filename, const int x, const int y,
|
bool CFrameBuffer::paintIcon(const std::string & filename, const int x, const int y,
|
||||||
const int h, const unsigned char offset, bool paint)
|
const int h, const unsigned char offset, bool paint, bool paintBg, const fb_pixel_t colBg)
|
||||||
{
|
{
|
||||||
struct rawHeader header;
|
struct rawHeader header;
|
||||||
int width, height;
|
int width, height;
|
||||||
@@ -880,6 +880,8 @@ _display:
|
|||||||
if (h != 0)
|
if (h != 0)
|
||||||
yy += (h - height) / 2;
|
yy += (h - height) / 2;
|
||||||
|
|
||||||
|
if (paintBg)
|
||||||
|
paintBoxRel(x, yy, width, height, colBg);
|
||||||
blit2FB(data, width, height, x, yy, 0, 0, true);
|
blit2FB(data, width, height, x, yy, 0, 0, true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user