CComponentsText: ensure an empty default value for AUTO_WIDTH in setText()

AUTO_WIDTH has ugly sideeffects in context with max width


Origin commit data
------------------
Branch: ni/coolstream
Commit: fcf8a018c5
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-22 (Sat, 22 Sep 2012)



------------------
This commit was generated by Migit
This commit is contained in:
2012-09-22 13:37:24 +02:00
parent 20b0197244
commit b3ad4a4396

View File

@@ -429,7 +429,7 @@ class CComponentsText : public CComponentsContainer
CComponentsText();
~CComponentsText();
inline void setText(const char* text, const int text_mode=CTextBox::AUTO_WIDTH, Font* font_text=NULL){ct_text = text; ct_text_mode = text_mode, ct_font = font_text;};
inline void setText(const char* text, const int text_mode=~CTextBox::AUTO_WIDTH, Font* font_text=NULL){ct_text = text; ct_text_mode = text_mode, ct_font = font_text;};
void hide(bool no_restore = false);
void paint(bool do_save_bg = CC_SAVE_SCREEN_YES);