From 8afe4495e7f8d1c921e576427f2276349bb36260 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 18 Feb 2016 10:42:59 +0100 Subject: [PATCH] CTextBox: remove statement for text change check Check of text change is not enough. Scrollboxes could have some problems. Dimension changes must be considered too and this is to much effort at the moment. Use of OnAfterScrollPage is much easier. this reverts: 342de45cc3f7dc65863441e1506e47d89c60b0de --- src/gui/widget/textbox.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/widget/textbox.cpp b/src/gui/widget/textbox.cpp index 0fc38b141..e2daec4bd 100644 --- a/src/gui/widget/textbox.cpp +++ b/src/gui/widget/textbox.cpp @@ -563,7 +563,7 @@ void CTextBox::refreshText(void) //bg variables int ax = m_cFrameTextRel.iX+m_cFrame.iX; int ay = m_cFrameTextRel.iY+m_cFrame.iY; - int dx = m_old_cText != m_cText ? m_cFrameTextRel.iWidth : m_nMaxTextWidth; + int dx = m_cFrameTextRel.iWidth; int dy = m_cFrameTextRel.iHeight; //find changes @@ -602,7 +602,6 @@ void CTextBox::refreshText(void) clearScreenBuffer(); if (allow_paint_bg){ //TRACE("[CTextBox] %s paint bg %d\r\n", __FUNCTION__, __LINE__); - //paint full background only on new text, otherwise paint required background frameBuffer->paintBoxRel(ax, ay, dx, dy, m_textBackgroundColor, m_nBgRadius, m_nBgRadiusType); } }