summaryrefslogtreecommitdiff
path: root/widget.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-08 22:25:24 +0000
committertron <tron@openttd.org>2005-07-08 22:25:24 +0000
commit1b4a0897b6944910edaeb8f34769a092110c0a0c (patch)
tree7b435600d289220b369f3d759ca520553f411357 /widget.c
parent83f72f696a3ce82eea4cfcbbbdbf35b0823492e3 (diff)
downloadopenttd-1b4a0897b6944910edaeb8f34769a092110c0a0c.tar.xz
(svn r2535) Tabs
Diffstat (limited to 'widget.c')
-rw-r--r--widget.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/widget.c b/widget.c
index 1e5aa52be..7518938f2 100644
--- a/widget.c
+++ b/widget.c
@@ -20,7 +20,7 @@ static Point HandleScrollbarHittest(Scrollbar *sb, int top, int bottom)
count = sb->count;
cap = sb->cap;
- if (count != 0) top += height * pos / count;
+ if (count != 0) top += height * pos / count;
if (cap > count) cap = count;
if (count != 0)
@@ -160,7 +160,8 @@ void DrawWindowWidgets(Window *w)
uint32 dparam_backup[20];
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;
@@ -425,7 +426,8 @@ void DrawWindowWidgets(Window *w)
DrawStringCentered( (r.left+r.right+1)>>1, r.top+2, wi->unkA, 0x84);
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:;
if (cur_disabled & 1) {
GfxFillRect(r.left+1, r.top+1, r.right-1, r.bottom-1, _color_list[wi->color&0xF].unk2 | 0x8000);