mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
supplement to a8ea7c60d5
This commit is contained in:
@@ -1395,16 +1395,18 @@ void CMenuWidget::saveScreen()
|
|||||||
delete[] background;
|
delete[] background;
|
||||||
saveScreen_height = full_height+fbutton_height;
|
saveScreen_height = full_height+fbutton_height;
|
||||||
saveScreen_width = full_width;
|
saveScreen_width = full_width;
|
||||||
|
saveScreen_y = y;
|
||||||
|
saveScreen_x = x;
|
||||||
background = new fb_pixel_t [saveScreen_height * saveScreen_width];
|
background = new fb_pixel_t [saveScreen_height * saveScreen_width];
|
||||||
if(background)
|
if(background)
|
||||||
frameBuffer->SaveScreen(x /*-ConnectLineBox_Width*/, y, full_width, saveScreen_height, background);
|
frameBuffer->SaveScreen(saveScreen_x /*-ConnectLineBox_Width*/, saveScreen_y, saveScreen_width, saveScreen_height, background);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMenuWidget::restoreScreen()
|
void CMenuWidget::restoreScreen()
|
||||||
{
|
{
|
||||||
if(background) {
|
if(background) {
|
||||||
if(savescreen)
|
if(savescreen)
|
||||||
frameBuffer->RestoreScreen(x /*-ConnectLineBox_Width*/, y, saveScreen_width, saveScreen_height, background);
|
frameBuffer->RestoreScreen(saveScreen_x /*-ConnectLineBox_Width*/, saveScreen_y, saveScreen_width, saveScreen_height, background);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1416,6 +1418,8 @@ void CMenuWidget::enableSaveScreen(bool enable)
|
|||||||
background = NULL;
|
background = NULL;
|
||||||
saveScreen_width = 0;
|
saveScreen_width = 0;
|
||||||
saveScreen_height = 0;
|
saveScreen_height = 0;
|
||||||
|
saveScreen_y = 0;
|
||||||
|
saveScreen_x = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -496,6 +496,8 @@ class CMenuWidget : public CMenuTarget, public CComponentsSignals
|
|||||||
CComponentsHeader *header;
|
CComponentsHeader *header;
|
||||||
unsigned int saveScreen_width ;
|
unsigned int saveScreen_width ;
|
||||||
unsigned int saveScreen_height;
|
unsigned int saveScreen_height;
|
||||||
|
unsigned int saveScreen_y;
|
||||||
|
unsigned int saveScreen_x;
|
||||||
protected:
|
protected:
|
||||||
std::string nameString;
|
std::string nameString;
|
||||||
neutrino_locale_t name;
|
neutrino_locale_t name;
|
||||||
|
Reference in New Issue
Block a user