mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user