slight cleanup of color-related code

This commit is contained in:
Daniel Micay 2012-05-30 09:22:02 -04:00
parent 77cc941288
commit b564e6e40b
1 changed files with 2 additions and 4 deletions

View File

@ -232,13 +232,11 @@ int main(int argc, char **argv) {
#endif
// set colors
GdkColor foreground, background;
GdkColor foreground, background, palette[16];
gdk_color_parse(foreground_color, &foreground);
gdk_color_parse(background_color, &background);
GdkColor palette[16];
for (size_t i = 0; i < 16; i++) {
for (unsigned i = 0; i < 16; i++) {
gdk_color_parse(colors[i], &palette[i]);
}