CTextBox: fix repaint of background of textbox on scroll and changed text

suplement to c3ecec9612


Origin commit data
------------------
Commit: 5c7e926a86
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-27 (Sun, 27 Oct 2013)
This commit is contained in:
2013-10-27 14:43:19 +01:00
parent 5f9bb84b28
commit 81a24f8717
2 changed files with 45 additions and 22 deletions

View File

@@ -115,12 +115,15 @@ class CTextBox
void reSizeMainFrameWidth(int maxTextWidth);
void reSizeMainFrameHeight(int maxTextHeight);
int getFontTextHeight();
bool hasChanged(int* x, int* y, int* dx, int* dy);
void reInitToCompareVar(int* x, int* y, int* dx, int* dy);
/* Variables */
std::string m_cText, m_old_cText;
std::vector<std::string> m_cLineArray;
int m_old_x, m_old_y, m_old_dx, m_old_dy, m_old_nBgRadius, m_old_nBgRadiusType, m_old_nMode;
bool m_has_scrolled;
fb_pixel_t m_old_textBackgroundColor;
bool m_showTextFrame;