summaryrefslogtreecommitdiff
path: root/widget.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-09-10 07:38:03 +0000
committertron <tron@openttd.org>2005-09-10 07:38:03 +0000
commit0fe36a6900b135361a3f01b36a00d8ad6acac8bc (patch)
treed2a18359b544bdb53c4ea4482b8aa03f378c802a /widget.c
parent04f051e423757c59af90b0727db6efdec3e18af5 (diff)
downloadopenttd-0fe36a6900b135361a3f01b36a00d8ad6acac8bc.tar.xz
(svn r2932) Give the strings consisting of an up/a down arrow symbolic names
Diffstat (limited to 'widget.c')
-rw-r--r--widget.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/widget.c b/widget.c
index 5465ce852..3f8fc7dc2 100644
--- a/widget.c
+++ b/widget.c
@@ -274,11 +274,11 @@ void DrawWindowWidgets(Window *w)
// draw up/down buttons
clicked = !!((w->flags4 & (WF_SCROLL_UP | WF_HSCROLL | WF_SCROLL2)) == WF_SCROLL_UP);
DrawFrameRect(r.left, r.top, r.right, r.top + 9, wi->color, (clicked) ? FR_LOWERED : 0);
- DoDrawString("\xA0", r.left + 2 + clicked, r.top + clicked, 0x10);
+ DoDrawString(UPARROW, r.left + 2 + clicked, r.top + clicked, 0x10);
clicked = !!(((w->flags4 & (WF_SCROLL_DOWN | WF_HSCROLL | WF_SCROLL2)) == WF_SCROLL_DOWN));
DrawFrameRect(r.left, r.bottom - 9, r.right, r.bottom, wi->color, (clicked) ? FR_LOWERED : 0);
- DoDrawString("\xAA", r.left + 2 + clicked, r.bottom - 9 + clicked, 0x10);
+ DoDrawString(DOWNARROW, r.left + 2 + clicked, r.bottom - 9 + clicked, 0x10);
c1 = _color_list[wi->color&0xF].window_color_1a;
c2 = _color_list[wi->color&0xF].window_color_2;
@@ -306,11 +306,11 @@ void DrawWindowWidgets(Window *w)
// draw up/down buttons
clicked = !!((w->flags4 & (WF_SCROLL_UP | WF_HSCROLL | WF_SCROLL2)) == (WF_SCROLL_UP | WF_SCROLL2));
DrawFrameRect(r.left, r.top, r.right, r.top + 9, wi->color, (clicked) ? FR_LOWERED : 0);
- DoDrawString("\xA0", r.left + 2 + clicked, r.top + clicked, 0x10);
+ DoDrawString(UPARROW, r.left + 2 + clicked, r.top + clicked, 0x10);
clicked = !!((w->flags4 & (WF_SCROLL_DOWN | WF_HSCROLL | WF_SCROLL2)) == (WF_SCROLL_DOWN | WF_SCROLL2));
DrawFrameRect(r.left, r.bottom - 9, r.right, r.bottom, wi->color, (clicked) ? FR_LOWERED : 0);
- DoDrawString("\xAA", r.left + 2 + clicked, r.bottom - 9 + clicked, 0x10);
+ DoDrawString(DOWNARROW, r.left + 2 + clicked, r.bottom - 9 + clicked, 0x10);
c1 = _color_list[wi->color&0xF].window_color_1a;
c2 = _color_list[wi->color&0xF].window_color_2;