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:
2016-01-21 10:56:30 +01:00
parent 9775f1f43a
commit 9d72b086a2
16 changed files with 177 additions and 36 deletions

View File

@@ -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__);