diff options
author | frosch <frosch@openttd.org> | 2011-05-04 17:45:16 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-05-04 17:45:16 +0000 |
commit | 22286bd7b6ece453e449f9b9f9f360484925457c (patch) | |
tree | 6827e0912689694ba65e13df1b125458458faaa5 /src/misc_gui.cpp | |
parent | bfb419f9d81bbbf9435fcc0848480f4a3e38c138 (diff) | |
download | openttd-22286bd7b6ece453e449f9b9f9f360484925457c.tar.xz |
(svn r22421) -Fix: Replace various references to Windows palette greyscale indices with the DOS palette indices.
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index e7b27ed0e..2a3ded6bc 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -930,7 +930,7 @@ struct TooltipsWindow : public Window virtual void DrawWidget(const Rect &r, int widget) const { /* There is only one widget. */ - GfxFillRect(r.left, r.top, r.right, r.bottom, 0); + GfxFillRect(r.left, r.top, r.right, r.bottom, GREY_SCALE(0)); GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, 0x44); for (uint arg = 0; arg < this->paramcount; arg++) { @@ -1303,7 +1303,7 @@ void QueryString::DrawEditBox(Window *w, int wid) int top = wi->pos_y; int bottom = wi->pos_y + wi->current_y - 1; - GfxFillRect(left + 1, top + 1, right - 1, bottom - 1, 215); + GfxFillRect(left + 1, top + 1, right - 1, bottom - 1, GREY_SCALE(1)); /* Limit the drawing of the string inside the widget boundaries */ DrawPixelInfo dpi; |