mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
text screen save: try to rework screen save behavior for textbox objects
Screen save now always disabled by default and can be controlled outside of relevant objects.
This commit is contained in:
@@ -588,8 +588,8 @@ void CTextBox::refreshText(void)
|
||||
//save screen only if no paint of background required
|
||||
if (!m_nPaintBackground && m_SaveScreen) {
|
||||
if (m_bgpixbuf == NULL){
|
||||
//TRACE("[CTextBox] %s save bg %d\r\n", __FUNCTION__, __LINE__);
|
||||
if ((dx * dy) >0){
|
||||
// TRACE("[CTextBox] [%s - %d] save bg for use as transparent background [%s]\n", __func__, __LINE__, m_cText.c_str());
|
||||
m_bgpixbuf= new fb_pixel_t[dx * dy];
|
||||
frameBuffer->SaveScreen(ax, ay, dx, dy, m_bgpixbuf);
|
||||
}
|
||||
@@ -598,7 +598,7 @@ void CTextBox::refreshText(void)
|
||||
|
||||
//Paint Text Background
|
||||
bool allow_paint_bg = (m_old_cText != m_cText || has_changed || m_has_scrolled);
|
||||
if (m_nPaintBackground){
|
||||
if (m_nPaintBackground && !m_SaveScreen){
|
||||
clearScreenBuffer();
|
||||
if (allow_paint_bg){
|
||||
//TRACE("[CTextBox] %s paint bg %d\r\n", __FUNCTION__, __LINE__);
|
||||
|
Reference in New Issue
Block a user