diff options
| author | Jordi Vilalta Prat | 2008-12-22 10:31:01 +0000 | 
|---|---|---|
| committer | Jordi Vilalta Prat | 2008-12-22 10:31:01 +0000 | 
| commit | 2ec51ef3585d9450ddf21cff9212c0bc7f0b6a3f (patch) | |
| tree | 46e6a311cdb21e5faf81dad895872ba4780bed15 /gui/ThemeEngine.cpp | |
| parent | 1ccce41c8fde4430671acc835c5f2f7b8caba2fb (diff) | |
| download | scummvm-rg350-2ec51ef3585d9450ddf21cff9212c0bc7f0b6a3f.tar.gz scummvm-rg350-2ec51ef3585d9450ddf21cff9212c0bc7f0b6a3f.tar.bz2 scummvm-rg350-2ec51ef3585d9450ddf21cff9212c0bc7f0b6a3f.zip  | |
Allow the disabled state of the popup widget to be themed
svn-id: r35480
Diffstat (limited to 'gui/ThemeEngine.cpp')
| -rw-r--r-- | gui/ThemeEngine.cpp | 9 | 
1 files changed, 8 insertions, 1 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp index 11b960a91b..839f351aa7 100644 --- a/gui/ThemeEngine.cpp +++ b/gui/ThemeEngine.cpp @@ -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);  | 
