aboutsummaryrefslogtreecommitdiff
path: root/gui/dialog.cpp
diff options
context:
space:
mode:
authorMax Horn2002-07-08 00:10:11 +0000
committerMax Horn2002-07-08 00:10:11 +0000
commitc9b1d393b836dc4239a42c0efad7712fb786930f (patch)
tree613ba6e70de76d499adbe793652289ca2b64c6aa /gui/dialog.cpp
parentc3b606cd9b0b0445b0360f9a95225186252ae1c1 (diff)
downloadscummvm-rg350-c9b1d393b836dc4239a42c0efad7712fb786930f.tar.gz
scummvm-rg350-c9b1d393b836dc4239a42c0efad7712fb786930f.tar.bz2
scummvm-rg350-c9b1d393b836dc4239a42c0efad7712fb786930f.zip
delay creation of dialogs till they are used; fixed new pause dialog & use it instead of the old one; dirty area handling in new gui code is more logical/useful now
svn-id: r4487
Diffstat (limited to 'gui/dialog.cpp')
-rw-r--r--gui/dialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/dialog.cpp b/gui/dialog.cpp
index ab64eafe67..9d253db2cf 100644
--- a/gui/dialog.cpp
+++ b/gui/dialog.cpp
@@ -29,6 +29,7 @@ void Dialog::draw()
_gui->clearArea(_x, _y, _w, _h);
_gui->box(_x, _y, _w, _h);
+ _gui->setAreaDirty(_x, _y, _w, _h);
while (w) {
w->draw();
@@ -194,5 +195,5 @@ void OptionsDialog::handleCommand(uint32 cmd)
PauseDialog::PauseDialog(NewGui *gui)
: Dialog (gui, 50, 80, 220, 16)
{
- addResText(2, 2, 220, 16, 10);
+ addResText(4, 4, 220, 16, 10);
}