From bb57506d48e783027dbf09ab44c88b40ed7d2fa4 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 19 Sep 2002 16:06:51 +0000 Subject: 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 --- gui/widget.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gui/widget.cpp') 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; } -- cgit v1.2.3