Allow the disabled state of the popup widget to be themed

svn-id: r35480
This commit is contained in:
Jordi Vilalta Prat 2008-12-22 10:31:01 +00:00
parent 1ccce41c8f
commit 2ec51ef358
8 changed files with 72 additions and 3 deletions

View file

@ -774,7 +774,14 @@ void ThemeEngine::drawPopUpWidget(const Common::Rect &r, const Common::String &s
if (!ready())
return;
DrawData dd = (state == kStateHighlight) ? kDDPopUpHover : kDDPopUpIdle;
DrawData dd = kDDPopUpIdle;
if (state == kStateEnabled)
dd = kDDPopUpIdle;
else if (state == kStateHighlight)
dd = kDDPopUpHover;
else if (state == kStateDisabled)
dd = kDDPopUpDisabled;
queueDD(dd, r);