DIRECTOR: Adjust text wrapping by one pixel

This commit is contained in:
Eugene Sandulenko 2017-02-01 01:06:01 +01:00
parent 6ef42cbe92
commit cc59811205

View file

@ -43,7 +43,7 @@ MacText::MacText(Common::String s, MacWindowManager *wm, const Font *font, int f
_font = font; _font = font;
_fgcolor = fgcolor; _fgcolor = fgcolor;
_bgcolor = bgcolor; _bgcolor = bgcolor;
_maxWidth = maxWidth; _maxWidth = maxWidth - 1; // This seems to be correct. TODO: More testing is required
_textMaxWidth = 0; _textMaxWidth = 0;
_textMaxHeight = 0; _textMaxHeight = 0;
_surface = nullptr; _surface = nullptr;