GUI: Make ScrollContainerWidget do full redraw
This commit is contained in:
parent
425d963bd3
commit
31e528c070
3 changed files with 8 additions and 0 deletions
|
@ -564,6 +564,12 @@ void GuiManager::processEvent(const Common::Event &event, Dialog *const activeDi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GuiManager::doFullRedraw() {
|
||||||
|
_redrawStatus = kRedrawFull;
|
||||||
|
redraw();
|
||||||
|
_system->updateScreen();
|
||||||
|
}
|
||||||
|
|
||||||
void GuiManager::giveFocusToDialog(Dialog *dialog) {
|
void GuiManager::giveFocusToDialog(Dialog *dialog) {
|
||||||
int16 dialogX = _globalMousePosition.x - dialog->_x;
|
int16 dialogX = _globalMousePosition.x - dialog->_x;
|
||||||
int16 dialogY = _globalMousePosition.y - dialog->_y;
|
int16 dialogY = _globalMousePosition.y - dialog->_y;
|
||||||
|
|
|
@ -73,6 +73,7 @@ public:
|
||||||
void runLoop();
|
void runLoop();
|
||||||
|
|
||||||
void processEvent(const Common::Event &event, Dialog *const activeDialog);
|
void processEvent(const Common::Event &event, Dialog *const activeDialog);
|
||||||
|
void doFullRedraw();
|
||||||
|
|
||||||
bool isActive() const { return ! _dialogStack.empty(); }
|
bool isActive() const { return ! _dialogStack.empty(); }
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,7 @@ void ScrollContainerWidget::handleCommand(CommandSender *sender, uint32 cmd, uin
|
||||||
_scrolledY = _verticalScroll->_currentPos;
|
_scrolledY = _verticalScroll->_currentPos;
|
||||||
reflowLayout();
|
reflowLayout();
|
||||||
draw();
|
draw();
|
||||||
|
g_gui.doFullRedraw();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue