mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 12:48:16 +00:00
GRAPHICS: MACGUI: Use proper dimensions for maxTextWidth in MacTextWindow
This commit is contained in:
parent
91615eb940
commit
085eea68c3
@ -72,10 +72,10 @@ MacTextWindow::MacTextWindow(MacWindowManager *wm, const MacFont *font, int fgco
|
||||
void MacTextWindow::resize(int w, int h) {
|
||||
undrawInput();
|
||||
|
||||
_maxWidth = w - kBorderWidth * 2;
|
||||
_mactext->setMaxWidth(_maxWidth);
|
||||
|
||||
MacWindow::resize(w, h);
|
||||
|
||||
_maxWidth = _innerDims.width();
|
||||
_mactext->setMaxWidth(_maxWidth);
|
||||
}
|
||||
|
||||
void MacTextWindow::appendText(Common::String str, const MacFont *macFont, bool skipAdd) {
|
||||
|
@ -308,6 +308,7 @@ protected:
|
||||
ManagedSurface _composeSurface;
|
||||
|
||||
bool _borderIsDirty;
|
||||
Common::Rect _innerDims;
|
||||
|
||||
private:
|
||||
MacWindowBorder _macBorder;
|
||||
@ -329,8 +330,6 @@ private:
|
||||
WindowClick _highlightedPart;
|
||||
float _scrollPos, _scrollSize;
|
||||
|
||||
Common::Rect _innerDims;
|
||||
|
||||
Common::String _title;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user