diff options
author | tron <tron@openttd.org> | 2006-08-29 06:07:57 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-08-29 06:07:57 +0000 |
commit | 17c610c0f49142168d834cdb34c780d79b9ccfd1 (patch) | |
tree | 164b9142d238f73a8ae387c96a49c99228de05e2 /settings_gui.c | |
parent | fc7a80c4707ce31181b047e73ca9ceea56cb9e2d (diff) | |
download | openttd-17c610c0f49142168d834cdb34c780d79b9ccfd1.tar.xz |
(svn r6209) Move DrawFrameRect() out of gfx.[ch], because it uses data (_color_list) which the renderer shouldn't have know about
Diffstat (limited to 'settings_gui.c')
-rw-r--r-- | settings_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/settings_gui.c b/settings_gui.c index 85803631f..33a14de37 100644 --- a/settings_gui.c +++ b/settings_gui.c @@ -410,8 +410,8 @@ static void GameDifficultyWndProc(Window *w, WindowEvent *e) y = GAMEDIFF_WND_TOP_OFFSET; for (i = 0; i != GAME_DIFFICULTY_NUM; i++) { - DrawFrameRect( 5, y, 5 + 8, y + 8, 3, GetBitAndShift(&click_a) ? (1 << 5) : 0); - DrawFrameRect(15, y, 15 + 8, y + 8, 3, GetBitAndShift(&click_b) ? (1 << 5) : 0); + DrawFrameRect( 5, y, 5 + 8, y + 8, 3, GetBitAndShift(&click_a) ? FR_LOWERED : 0); + DrawFrameRect(15, y, 15 + 8, y + 8, 3, GetBitAndShift(&click_b) ? FR_LOWERED : 0); if (GetBitAndShift(&disabled) || (_networking && !_network_server)) { int color = PALETTE_MODIFIER_GREYOUT | _color_list[3].unk2; GfxFillRect( 6, y + 1, 6 + 8, y + 8, color); |