CTextBox: ensure paint of text and background only if required

It's not new, but this involves also other properties,
like color or position...

It's possible that more properties are required, maybe needs to be watched
and evaluation of comparison might require further revisions.


Origin commit data
------------------
Branch: ni/coolstream
Commit: adba310c1c
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-21 (Mon, 21 Oct 2013)



------------------
This commit was generated by Migit
This commit is contained in:
2013-10-21 17:54:51 +02:00
parent b6411824e2
commit b7373ffdc4
2 changed files with 67 additions and 20 deletions

View File

@@ -116,9 +116,12 @@ class CTextBox
int getFontTextHeight();
/* Variables */
std::string m_cText;
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;
fb_pixel_t m_old_textBackgroundColor;
bool m_showTextFrame;
CBox m_cFrame;