mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-13 15:40:57 +00:00
GRAPHICS: MACGUI: Disable MacText with tables resizing
The problem is more complex than it appears, so, disabling this before the release, because the current code is removing tables on resize
This commit is contained in:
parent
2fd005b001
commit
92b03145a2
@ -1204,6 +1204,12 @@ void MacTextCanvas::setMaxWidth(int maxWidth, MacFontRun &defaultFormatting) {
|
||||
|
||||
for (uint i = 0; i < _text.size(); i++) {
|
||||
row = i;
|
||||
|
||||
if (_text[i].table) {
|
||||
processTable(i, maxWidth);
|
||||
continue;
|
||||
}
|
||||
|
||||
reshuffleParagraph(&row, &col, _defaultFormatting);
|
||||
|
||||
while (i < _text.size() - 1 && !_text[i].paragraphEnd)
|
||||
|
@ -303,6 +303,14 @@ void MacText::setMaxWidth(int maxWidth) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (uint i = 0; i < _canvas._text.size(); i++) {
|
||||
if (_canvas._text[i].table) {
|
||||
// TODO
|
||||
debug(0, "MacText::setMaxWidth(): Skipping resize for MacText with tables");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// keep the cursor pos
|
||||
int ppos = 0;
|
||||
for (int i = 0; i < _cursorRow; i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user