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 | 8607bbf06d0fd1781c6ea7cb551327bfde2a6b4b (patch) | |
tree | 675809baa0b80a6754f7327b5b7cc056952ef6e0 /misc_gui.c | |
parent | b73099e083489ffea5d226517e5193bd7f742202 (diff) | |
download | openttd-8607bbf06d0fd1781c6ea7cb551327bfde2a6b4b.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); |