summaryrefslogtreecommitdiff
path: root/src/news_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-05-04 17:45:16 +0000
committerfrosch <frosch@openttd.org>2011-05-04 17:45:16 +0000
commit22286bd7b6ece453e449f9b9f9f360484925457c (patch)
tree6827e0912689694ba65e13df1b125458458faaa5 /src/news_gui.cpp
parentbfb419f9d81bbbf9435fcc0848480f4a3e38c138 (diff)
downloadopenttd-22286bd7b6ece453e449f9b9f9f360484925457c.tar.xz
(svn r22421) -Fix: Replace various references to Windows palette greyscale indices with the DOS palette indices.
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r--src/news_gui.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp
index 8aa2ce669..7ce0ae8be 100644
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -335,12 +335,12 @@ struct NewsWindow : Window {
void DrawNewsBorder(const Rect &r) const
{
- GfxFillRect(r.left, r.top, r.right, r.bottom, 0xF);
+ GfxFillRect(r.left, r.top, r.right, r.bottom, GREY_SCALE(15));
- GfxFillRect(r.left, r.top, r.left, r.bottom, 0xD7);
- GfxFillRect(r.right, r.top, r.right, r.bottom, 0xD7);
- GfxFillRect(r.left, r.top, r.right, r.top, 0xD7);
- GfxFillRect(r.left, r.bottom, r.right, r.bottom, 0xD7);
+ GfxFillRect(r.left, r.top, r.left, r.bottom, GREY_SCALE(1));
+ GfxFillRect(r.right, r.top, r.right, r.bottom, GREY_SCALE(1));
+ GfxFillRect(r.left, r.top, r.right, r.top, GREY_SCALE(1));
+ GfxFillRect(r.left, r.bottom, r.right, r.bottom, GREY_SCALE(1));
}
virtual Point OnInitialPosition(const WindowDesc *desc, int16 sm_width, int16 sm_height, int window_number)
@@ -425,7 +425,7 @@ struct NewsWindow : Window {
break;
case NTW_VEH_BKGND:
- GfxFillRect(r.left, r.top, r.right, r.bottom, 10);
+ GfxFillRect(r.left, r.top, r.right, r.bottom, GREY_SCALE(10));
break;
case NTW_VEH_NAME: