GRAPHICS: MACGUI: Enforce maxWidth for editable text

This commit is contained in:
Eugene Sandulenko 2020-04-29 15:05:29 +02:00
parent b91325b8a4
commit d389b352f9

View File

@ -54,9 +54,9 @@ struct SelectedText {
class MacEditableText : public MacText, public MacWidget {
public:
MacEditableText(MacWidget *parent, int x, int y, int w, int h, MacWindowManager *wm, const Common::U32String &s, const MacFont *font, int fgcolor, int bgcolor,
int maxWidth = -1, TextAlign textAlignment = kTextAlignLeft, int interlinear = 0);
int maxWidth, TextAlign textAlignment = kTextAlignLeft, int interlinear = 0);
MacEditableText(MacWidget *parent, int x, int y, int w, int h, MacWindowManager *wm, const Common::String &s, const MacFont *font, int fgcolor, int bgcolor,
int maxWidth = -1, TextAlign textAlignment = kTextAlignLeft, int interlinear = 0);
int maxWidth, TextAlign textAlignment = kTextAlignLeft, int interlinear = 0);
// 0 pixels between the lines by default
virtual ~MacEditableText();