(svn r13907) -Codechange: Replace a number with Colours enum on DrawFrameRect usage

This commit is contained in:
belugas
2008-08-01 03:43:53 +00:00
parent 325ef293fd
commit 69671d3aef
8 changed files with 10 additions and 10 deletions

View File

@@ -148,7 +148,7 @@ struct CheatWindow : Window {
case SLE_BOOL: {
bool on = (*(bool*)ce->variable);
DrawFrameRect(x + 20, y + 1, x + 30 + 9, y + 9, on ? 6 : 4, on ? FR_LOWERED : FR_NONE);
DrawFrameRect(x + 20, y + 1, x + 30 + 9, y + 9, on ? COLOUR_GREEN : COLOUR_RED, on ? FR_LOWERED : FR_NONE);
SetDParam(0, on ? STR_CONFIG_PATCHES_ON : STR_CONFIG_PATCHES_OFF);
} break;