summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-11-05 18:41:34 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-11-05 18:41:34 +0000
commitdd96213cdf64c5481c8d07dbd39ce1247f42d04e (patch)
tree453c4aa1dcb9fb1ee1852fdba106f697d16af17f /src/gui/widgets
parentf1b06fb279c460691a88c8143084390e435d6bf9 (diff)
downloadmana-client-dd96213cdf64c5481c8d07dbd39ce1247f42d04e.tar.gz
mana-client-dd96213cdf64c5481c8d07dbd39ce1247f42d04e.tar.bz2
mana-client-dd96213cdf64c5481c8d07dbd39ce1247f42d04e.tar.xz
mana-client-dd96213cdf64c5481c8d07dbd39ce1247f42d04e.zip
Merged the definition of ImageRect into graphics.h.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/dropdown.cpp24
1 files changed, 11 insertions, 13 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp
index 34c6b93a..0bf0e673 100644
--- a/src/gui/widgets/dropdown.cpp
+++ b/src/gui/widgets/dropdown.cpp
@@ -25,8 +25,6 @@
#include "../../graphics.h"
-#include "../../graphic/imagerect.h"
-
#include "../../resources/image.h"
#include "../../resources/resourcemanager.h"
@@ -138,17 +136,17 @@ void DropDown::draw(gcn::Graphics* graphics)
drawButton(graphics);
- if (mDroppedDown)
- {
- drawChildren(graphics);
-
- // Draw two lines separating the ListBox with se selected
- // element view.
- graphics->setColor(highlightColor);
- graphics->drawLine(0, h, getWidth(), h);
- graphics->setColor(shadowColor);
- graphics->drawLine(0, h + 1,getWidth(),h + 1);
- }
+ if (mDroppedDown)
+ {
+ drawChildren(graphics);
+
+ // Draw two lines separating the ListBox with se selected
+ // element view.
+ graphics->setColor(highlightColor);
+ graphics->drawLine(0, h, getWidth(), h);
+ graphics->setColor(shadowColor);
+ graphics->drawLine(0, h + 1,getWidth(),h + 1);
+ }
}
void DropDown::drawBorder(gcn::Graphics *graphics)