Start trying to clean up the Windows x64 build (trunk only)

This commit is contained in:
nethack.allison
2012-01-11 01:15:37 +00:00
parent b97d53fb30
commit 783413bb57
11 changed files with 145 additions and 122 deletions
+6 -6
View File
@@ -2487,17 +2487,17 @@ static void mswin_color_from_string(char *colorstring, HBRUSH* brushptr, COLORRE
if (*colorstring == '#') {
if (strlen(++colorstring) != 6) return;
red_value = index(hexadecimals, tolower(*colorstring++)) - hexadecimals;
red_value = (int)(index(hexadecimals, tolower(*colorstring++)) - hexadecimals);
red_value *= 16;
red_value += index(hexadecimals, tolower(*colorstring++)) - hexadecimals;
red_value += (int)(index(hexadecimals, tolower(*colorstring++)) - hexadecimals);
green_value = index(hexadecimals, tolower(*colorstring++)) - hexadecimals;
green_value = (int)(index(hexadecimals, tolower(*colorstring++)) - hexadecimals);
green_value *= 16;
green_value += index(hexadecimals, tolower(*colorstring++)) - hexadecimals;
green_value += (int)(index(hexadecimals, tolower(*colorstring++)) - hexadecimals);
blue_value = index(hexadecimals, tolower(*colorstring++)) - hexadecimals;
blue_value = (int)(index(hexadecimals, tolower(*colorstring++)) - hexadecimals);
blue_value *= 16;
blue_value += index(hexadecimals, tolower(*colorstring++)) - hexadecimals;
blue_value += (int)(index(hexadecimals, tolower(*colorstring++)) - hexadecimals);
*colorptr = RGB(red_value, green_value, blue_value);
} else {