diff options
author | celestar <celestar@openttd.org> | 2005-07-28 09:17:32 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2005-07-28 09:17:32 +0000 |
commit | 04f4d8237b879e3bb7c61a84cfbb5146cd408111 (patch) | |
tree | e279dbeda45e111fee0148b401cba8615f3adaec /main_gui.c | |
parent | 139f0c95ca77b7c28510e92c3230495f88806cd9 (diff) | |
download | openttd-04f4d8237b879e3bb7c61a84cfbb5146cd408111.tar.xz |
(svn r2736) -Codechange: De-mystified GfxDrawFillRect a bit, and used enums from table/sprites.h. You can now change the number of bits used for sprites and switches in the SpriteSetup enum and the rest should work automagically. Can be used to increase the number of active sprites to 2^19 in case there are no colortables (recolor sprites) in any newgrf. We should possibly move the the colortables to an own list, but how to detect them in a newgrf.
Diffstat (limited to 'main_gui.c')
-rw-r--r-- | main_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main_gui.c b/main_gui.c index 9875d5d06..252d6f492 100644 --- a/main_gui.c +++ b/main_gui.c @@ -1863,7 +1863,7 @@ static void MainToolbarWndProc(Window *w, WindowEvent *e) // Draw brown-red toolbar bg. GfxFillRect(0, 0, w->width-1, w->height-1, 0xB2); - GfxFillRect(0, 0, w->width-1, w->height-1, 0x80B4); + GfxFillRect(0, 0, w->width-1, w->height-1, 0xB4 | PALETTE_MODIFIER_GREYOUT); // if spectator, disable things if (_current_player == OWNER_SPECTATOR){ @@ -2089,7 +2089,7 @@ static void ScenEditToolbarWndProc(Window *w, WindowEvent *e) // Draw brown-red toolbar bg. GfxFillRect(0, 0, w->width-1, w->height-1, 0xB2); - GfxFillRect(0, 0, w->width-1, w->height-1, 0x80B4); + GfxFillRect(0, 0, w->width-1, w->height-1, 0xB4 | PALETTE_MODIFIER_GREYOUT); DrawWindowWidgets(w); |