- PopUpWidget (drop down list) does not shadow underlying dialog anymore

- Remove reduntant code in drawing pipeline. Topmost dialog was drawn
  up to 4 times

svn-id: r21998
This commit is contained in:
Eugene Sandulenko 2006-04-18 00:37:04 +00:00
parent 1c9c14011b
commit 5daa835cc7
4 changed files with 23 additions and 19 deletions

View file

@ -39,15 +39,17 @@ namespace GUI {
* ...
*/
Dialog::Dialog(int x, int y, int w, int h)
Dialog::Dialog(int x, int y, int w, int h, bool dimsInactive_)
: GuiObject(x, y, w, h),
_mouseWidget(0), _focusedWidget(0), _dragWidget(0), _visible(false), _drawingHints(0) {
_mouseWidget(0), _focusedWidget(0), _dragWidget(0), _visible(false), _drawingHints(0),
_dimsInactive(dimsInactive_) {
_drawingHints = THEME_HINT_FIRST_DRAW | THEME_HINT_SAVE_BACKGROUND;
}
Dialog::Dialog(Common::String name)
Dialog::Dialog(Common::String name, bool dimsInactive_)
: GuiObject(name),
_mouseWidget(0), _focusedWidget(0), _dragWidget(0), _visible(false), _drawingHints(0) {
_mouseWidget(0), _focusedWidget(0), _dragWidget(0), _visible(false), _drawingHints(0),
_dimsInactive(dimsInactive_) {
_drawingHints = THEME_HINT_FIRST_DRAW | THEME_HINT_SAVE_BACKGROUND;
}