mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-20 03:59:32 +01:00
(svn r2535) Tabs
This commit is contained in:
parent
83f72f696a
commit
1b4a0897b6
6
widget.c
6
widget.c
@ -160,7 +160,8 @@ void DrawWindowWidgets(Window *w)
|
|||||||
uint32 dparam_backup[20];
|
uint32 dparam_backup[20];
|
||||||
uint32 cur_click, cur_disabled, cur_hidden;
|
uint32 cur_click, cur_disabled, cur_hidden;
|
||||||
|
|
||||||
if (w->desc_flags & WDF_RESTORE_DPARAM) COPY_OUT_DPARAM(dparam_backup, 0, lengthof(dparam_backup));
|
if (w->desc_flags & WDF_RESTORE_DPARAM)
|
||||||
|
COPY_OUT_DPARAM(dparam_backup, 0, lengthof(dparam_backup));
|
||||||
|
|
||||||
wi = w->widget;
|
wi = w->widget;
|
||||||
|
|
||||||
@ -425,7 +426,8 @@ void DrawWindowWidgets(Window *w)
|
|||||||
|
|
||||||
DrawStringCentered( (r.left+r.right+1)>>1, r.top+2, wi->unkA, 0x84);
|
DrawStringCentered( (r.left+r.right+1)>>1, r.top+2, wi->unkA, 0x84);
|
||||||
restore_dparam:;
|
restore_dparam:;
|
||||||
if (w->desc_flags & WDF_RESTORE_DPARAM) COPY_IN_DPARAM(0, dparam_backup, lengthof(dparam_backup));
|
if (w->desc_flags & WDF_RESTORE_DPARAM)
|
||||||
|
COPY_IN_DPARAM(0, dparam_backup, lengthof(dparam_backup));
|
||||||
draw_default:;
|
draw_default:;
|
||||||
if (cur_disabled & 1) {
|
if (cur_disabled & 1) {
|
||||||
GfxFillRect(r.left+1, r.top+1, r.right-1, r.bottom-1, _color_list[wi->color&0xF].unk2 | 0x8000);
|
GfxFillRect(r.left+1, r.top+1, r.right-1, r.bottom-1, _color_list[wi->color&0xF].unk2 | 0x8000);
|
||||||
|
Loading…
Reference in New Issue
Block a user