textbox.cpp: check for pix buffer content first for shure

Origin commit data
------------------
Branch: ni/coolstream
Commit: 66b0d16131
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-04-28 (Sun, 28 Apr 2019)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2019-04-28 21:17:37 +02:00
committed by vanhofen
parent 9d19d05542
commit 2ec5fe77fa

View File

@@ -607,8 +607,9 @@ void CTextBox::refreshText(void)
if (has_changed)
clearScreenBuffer();
if(m_bgpixbuf && (m_old_cText != m_cText))
frameBuffer->RestoreScreen(m_old_x, m_old_y, m_old_dx, m_old_dy, m_bgpixbuf);
if(m_bgpixbuf)
if (m_old_cText != m_cText)
frameBuffer->RestoreScreen(m_old_x, m_old_y, m_old_dx, m_old_dy, m_bgpixbuf);
if (m_bgpixbuf){
frameBuffer->RestoreScreen(m_old_x, m_old_y, m_old_dx, m_old_dy, m_bgpixbuf);