aboutsummaryrefslogtreecommitdiff
path: root/gui/widget.cpp
diff options
context:
space:
mode:
authorMax Horn2002-09-19 16:06:51 +0000
committerMax Horn2002-09-19 16:06:51 +0000
commitbb57506d48e783027dbf09ab44c88b40ed7d2fa4 (patch)
treeed90efab26e7287627b2a5ce6c8c6d6909a5cf5d /gui/widget.cpp
parentb46b35b54470180a882d2732b75d64243857cb54 (diff)
downloadscummvm-rg350-bb57506d48e783027dbf09ab44c88b40ed7d2fa4.tar.gz
scummvm-rg350-bb57506d48e783027dbf09ab44c88b40ed7d2fa4.tar.bz2
scummvm-rg350-bb57506d48e783027dbf09ab44c88b40ed7d2fa4.zip
Added overlay to OSystem interface; implemented overlay in SDL backend (all other backends, including SDL_gl, still need to implement this!); changed NewGUI to make use of the overlay; added Cmd-Q as a shortcut for Quit on MacOS X
svn-id: r4971
Diffstat (limited to 'gui/widget.cpp')
-rw-r--r--gui/widget.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp
index e822617460..f6aedbad76 100644
--- a/gui/widget.cpp
+++ b/gui/widget.cpp
@@ -58,9 +58,6 @@ void Widget::draw()
// Now perform the actual widget draw
drawWidget(_flags & WIDGET_HILITED);
-
- // Flag the draw area as dirty
- gui->addDirtyRect(_x, _y, _w, _h);
// Restore x/y
if (_flags & WIDGET_BORDER) {
@@ -68,6 +65,10 @@ void Widget::draw()
_y -= 4;
_w += 8;
}
+
+ // Flag the draw area as dirty
+ gui->addDirtyRect(_x, _y, _w, _h);
+
_x -= _boss->_x;
_y -= _boss->_y;
}