summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-08-29 06:39:00 +0000
committertron <tron@openttd.org>2006-08-29 06:39:00 +0000
commit96f9a0ad7b6cb09e5d2ffed29d26e10eaad44b83 (patch)
tree54573383dbac4826babeed21a169380d3c04696a
parent17c610c0f49142168d834cdb34c780d79b9ccfd1 (diff)
downloadopenttd-96f9a0ad7b6cb09e5d2ffed29d26e10eaad44b83.tar.xz
(svn r6210) Remove FR_NOBORDER, because it is exclusivly used in conjunction with FR_TRANSPARENT
-rw-r--r--widget.c8
-rw-r--r--window.h1
2 files changed, 2 insertions, 7 deletions
diff --git a/widget.c b/widget.c
index 83ec93e22..2109891ca 100644
--- a/widget.c
+++ b/widget.c
@@ -157,12 +157,8 @@ void DrawFrameRect(int left, int top, int right, int bottom, int ctab, FrameFlag
uint medium_light = _color_list[ctab].window_color_bgb;
uint light = _color_list[ctab].window_color_2;
- if (flags & FR_NOBORDER) {
- if (flags & FR_TRANSPARENT) {
- GfxFillRect(left, top, right, bottom, 0x322 | USE_COLORTABLE);
- } else {
- GfxFillRect(left, top, right, bottom, medium_dark);
- }
+ if (flags & FR_TRANSPARENT) {
+ GfxFillRect(left, top, right, bottom, 0x322 | USE_COLORTABLE);
} else {
uint interior;
diff --git a/window.h b/window.h
index 2e3c597c0..59f54f7f9 100644
--- a/window.h
+++ b/window.h
@@ -63,7 +63,6 @@ typedef struct Widget {
typedef enum FrameFlags {
FR_TRANSPARENT = 0x01, ///< Makes the background transparent if set
- FR_NOBORDER = 0x08, ///< Hide border (draws just a solid box)
FR_BORDERONLY = 0x10, ///< Draw border only, no background
FR_LOWERED = 0x20, ///< If set the frame is lowered and the background color brighter (ie. buttons when pressed)
FR_DARKENED = 0x40, ///< If set the background is darker, allows for lowered frames with normal background color when used with FR_LOWERED (ie. dropdown boxes)