mirror of https://github.com/OpenTTD/OpenTTD
(svn r6210) Remove FR_NOBORDER, because it is exclusivly used in conjunction with FR_TRANSPARENT
parent
17c610c0f4
commit
96f9a0ad7b
8
widget.c
8
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 medium_light = _color_list[ctab].window_color_bgb;
|
||||||
uint light = _color_list[ctab].window_color_2;
|
uint light = _color_list[ctab].window_color_2;
|
||||||
|
|
||||||
if (flags & FR_NOBORDER) {
|
if (flags & FR_TRANSPARENT) {
|
||||||
if (flags & FR_TRANSPARENT) {
|
GfxFillRect(left, top, right, bottom, 0x322 | USE_COLORTABLE);
|
||||||
GfxFillRect(left, top, right, bottom, 0x322 | USE_COLORTABLE);
|
|
||||||
} else {
|
|
||||||
GfxFillRect(left, top, right, bottom, medium_dark);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
uint interior;
|
uint interior;
|
||||||
|
|
||||||
|
|
1
window.h
1
window.h
|
@ -63,7 +63,6 @@ typedef struct Widget {
|
||||||
|
|
||||||
typedef enum FrameFlags {
|
typedef enum FrameFlags {
|
||||||
FR_TRANSPARENT = 0x01, ///< Makes the background transparent if set
|
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_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_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)
|
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)
|
||||||
|
|
Loading…
Reference in New Issue