summaryrefslogtreecommitdiff
path: root/src/order_gui.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-11-04 00:08:57 +0000
committerbelugas <belugas@openttd.org>2007-11-04 00:08:57 +0000
commite2c0f1faf75c1c81790f11c88f9ceee8d36916c0 (patch)
tree14a742a306f14c4d3afd56b725a7c6ffe7fb0e73 /src/order_gui.cpp
parentc871dc1dd51634f6ac49c803be8389088ee39d43 (diff)
downloadopenttd-e2c0f1faf75c1c81790f11c88f9ceee8d36916c0.tar.xz
(svn r11374) -Codechange: Give meaning to the magical number that specifies the color of the text in a DrawString call.
Patch heavily based on BiBB's work (FS#1383)
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r--src/order_gui.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index 2dd5714a8..27ea5646e 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -238,9 +238,8 @@ static void DrawOrdersWindow(Window *w)
default: break;
}
- const byte colour = (i == WP(w,order_d).sel) ? 0xC : 0x10;
SetDParam(0, i + 1);
- DrawString(2, y, str, colour);
+ DrawString(2, y, str, (i == WP(w,order_d).sel) ? TC_WHITE : TC_BLACK);
y += 10;
}
@@ -251,8 +250,7 @@ static void DrawOrdersWindow(Window *w)
if (i - w->vscroll.pos < w->vscroll.cap) {
str = shared_orders ? STR_END_OF_SHARED_ORDERS : STR_882A_END_OF_ORDERS;
- const byte colour = (i == WP(w,order_d).sel) ? 0xC : 0x10;
- DrawString(2, y, str, colour);
+ DrawString(2, y, str, (i == WP(w,order_d).sel) ? TC_WHITE : TC_BLACK);
}
}