mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
neutrino: adapt to the framebuffer_spark blitter change
basically add fb->blit() in every widget where necessary to
make sure the framebuffer is updated with current content
Origin commit data
------------------
Branch: ni/coolstream
Commit: a029333c1a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-04-01 (Sun, 01 Apr 2012)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -58,7 +58,10 @@ CFBWindow::~CFBWindow(void)
|
||||
if (private_data != NULL)
|
||||
{
|
||||
if (((CPrivateData *)private_data)->Background != NULL)
|
||||
{
|
||||
((CPrivateData *)private_data)->frameBuffer->RestoreScreen(x, y, dx, dy, ((CPrivateData *)private_data)->Background);
|
||||
((CPrivateData *)private_data)->frameBuffer->blit();
|
||||
}
|
||||
delete[] ((CPrivateData *)private_data)->Background;
|
||||
delete ((CPrivateData *)private_data);
|
||||
private_data = NULL;
|
||||
@@ -68,15 +71,18 @@ CFBWindow::~CFBWindow(void)
|
||||
void CFBWindow::paintBoxRel(const int _x, const int _y, const int _dx, const int _dy, const color_t _col, int radius, int type)
|
||||
{
|
||||
((CPrivateData *)private_data)->frameBuffer->paintBoxRel(x + _x, y + _y, _dx, _dy, _col, radius, type);
|
||||
((CPrivateData *)private_data)->frameBuffer->blit();
|
||||
}
|
||||
|
||||
bool CFBWindow::paintIcon(const char * const _filename, const int _x, const int _y, const int _h, const color_t _offset)
|
||||
{
|
||||
((CPrivateData *)private_data)->frameBuffer->paintIcon(_filename, x + _x, y + _y, _h, _offset);
|
||||
((CPrivateData *)private_data)->frameBuffer->blit();
|
||||
return 0;
|
||||
}
|
||||
|
||||
void CFBWindow::RenderString(const font_t _font, const int _x, const int _y, const int _width, const char * const _text, const color_t _color, const int _boxheight, const bool _utf8_encoded)
|
||||
{
|
||||
((Font *)_font)->RenderString(x + _x, y + _y, _width, _text, _color, _boxheight, _utf8_encoded);
|
||||
((CPrivateData *)private_data)->frameBuffer->blit();
|
||||
}
|
||||
|
Reference in New Issue
Block a user