WAGE: Started window resize implementation
This commit is contained in:
parent
ca4a948240
commit
b4a2361bf7
5 changed files with 59 additions and 26 deletions
|
@ -190,10 +190,10 @@ Gui::Gui(WageEngine *engine) {
|
|||
|
||||
_menu = new Menu(this);
|
||||
|
||||
_sceneWindow = _wm.add(false);
|
||||
_sceneWindow = _wm.add(false, false);
|
||||
_sceneWindow->setCallback(sceneWindowCallback, this);
|
||||
|
||||
_consoleWindow = _wm.add(true);
|
||||
_consoleWindow = _wm.add(true, true);
|
||||
_consoleWindow->setCallback(consoleWindowCallback, this);
|
||||
}
|
||||
|
||||
|
@ -393,6 +393,13 @@ bool Gui::processConsoleEvents(WindowClick click, Common::Event &event) {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (click == kBorderResizeButton) {
|
||||
_consoleDirty = true;
|
||||
_consoleFullRedraw = true;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
if (click == kBorderInner) {
|
||||
if (event.type == Common::EVENT_LBUTTONDOWN) {
|
||||
startMarking(event.mouse.x, event.mouse.y);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue