mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +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
This commit is contained in:
@@ -86,7 +86,7 @@ void CProgressWindow::showGlobalStatus(const unsigned int prog)
|
||||
}
|
||||
//hintergrund
|
||||
frameBuffer->paintBox(pos, globalstatusY, x+width-10, globalstatusY+10, COL_MENUCONTENT_PLUS_2);
|
||||
|
||||
frameBuffer->blit();
|
||||
#ifdef VFD_UPDATE
|
||||
CVFD::getInstance()->showProgressBar2(-1,NULL,global_progress);
|
||||
#endif // VFD_UPDATE
|
||||
@@ -112,6 +112,7 @@ void CProgressWindow::showLocalStatus(const unsigned int prog)
|
||||
}
|
||||
//hintergrund
|
||||
frameBuffer->paintBox(pos, localstatusY, x+width-10, localstatusY+10, COL_MENUCONTENT_PLUS_2);
|
||||
frameBuffer->blit();
|
||||
|
||||
#ifdef VFD_UPDATE
|
||||
CVFD::getInstance()->showProgressBar2(local_progress);
|
||||
@@ -123,6 +124,7 @@ void CProgressWindow::showStatusMessageUTF(const std::string & text)
|
||||
statusText = text;
|
||||
frameBuffer->paintBox(x, statusTextY-mheight, x+width, statusTextY, COL_MENUCONTENT_PLUS_0);
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(x+10, statusTextY, width-20, text, COL_MENUCONTENT, 0, true); // UTF-8
|
||||
frameBuffer->blit();
|
||||
|
||||
#ifdef VFD_UPDATE
|
||||
CVFD::getInstance()->showProgressBar2(-1,text.c_str()); // set local text in VFD
|
||||
@@ -139,6 +141,7 @@ unsigned int CProgressWindow::getGlobalStatus(void)
|
||||
void CProgressWindow::hide()
|
||||
{
|
||||
frameBuffer->paintBackgroundBoxRel(x,y, width,height);
|
||||
frameBuffer->blit();
|
||||
}
|
||||
|
||||
void CProgressWindow::paint()
|
||||
@@ -173,6 +176,7 @@ int CProgressWindow::exec(CMenuTarget* parent, const std::string & /*actionKey*/
|
||||
parent->hide();
|
||||
}
|
||||
paint();
|
||||
frameBuffer->blit();
|
||||
|
||||
return menu_return::RETURN_REPAINT;
|
||||
}
|
||||
|
Reference in New Issue
Block a user