diff options
author | hackykid <hackykid@openttd.org> | 2005-06-15 17:27:14 +0000 |
---|---|---|
committer | hackykid <hackykid@openttd.org> | 2005-06-15 17:27:14 +0000 |
commit | 90900802b9129f2dcd052a78abb5ae656f7604c5 (patch) | |
tree | 675809baa0b80a6754f7327b5b7cc056952ef6e0 /misc_gui.c | |
parent | fd95f78dfc9a0c16e458da19613d64960c5ab37f (diff) | |
download | openttd-90900802b9129f2dcd052a78abb5ae656f7604c5.tar.xz |
(svn r2444) - CodeChange: Add an enum for demagicifying the values of the 'flags' parameter of DrawFrameRect(). (_Abraxa_)
Diffstat (limited to 'misc_gui.c')
-rw-r--r-- | misc_gui.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/misc_gui.c b/misc_gui.c index c991d958a..daa8ed224 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -1725,19 +1725,19 @@ static void CheatsWndProc(Window *w, WindowEvent *e) DrawSprite((SPR_OPENTTD_BASE + ((*ce->been_used)?67:66)), x+5, y+2); if (ce->type == CE_BOOL) { - DrawFrameRect(x+20, y+1, x+30+9, y+9, (*(bool*)ce->variable)?6:4, (*(bool*)ce->variable)?0x20:0); + DrawFrameRect(x+20, y+1, x+30+9, y+9, (*(bool*)ce->variable) ? 6 : 4, (*(bool*)ce->variable) ? FR_LOWERED : 0); SetDParam(0, *(bool*)ce->variable ? STR_CONFIG_PATCHES_ON : STR_CONFIG_PATCHES_OFF); } else if (ce->type == CE_CLICK) { - DrawFrameRect(x+20, y+1, x+30+9, y+9, 0, (WP(w,def_d).data_1==i*2+1)?0x20:0x00); - if(i==0) + DrawFrameRect(x+20, y+1, x+30+9, y+9, 0, (WP(w,def_d).data_1 == i*2+1) ? FR_LOWERED : 0); + if (i == 0) SetDParam64(0, (int64) 10000000); else SetDParam(0, false); } else { - DrawFrameRect(x+20, y+1, x+20+9, y+9, 3, clk == i*2+1 ? 0x20 : 0); - DrawFrameRect(x+30, y+1, x+30+9, y+9, 3, clk == i*2+2 ? 0x20 : 0); + DrawFrameRect(x+20, y+1, x+20+9, y+9, 3, clk == i*2+1 ? FR_LOWERED : 0); + DrawFrameRect(x+30, y+1, x+30+9, y+9, 3, clk == i*2+2 ? FR_LOWERED : 0); DrawStringCentered(x+25, y+1, STR_6819, 0); DrawStringCentered(x+35, y+1, STR_681A, 0); |