decalre variables before code!
This commit is contained in:
parent
7f561a6a7a
commit
2870457bf5
1 changed files with 2 additions and 1 deletions
|
@ -14,10 +14,11 @@ void color_allocate_gc(color_rgb *in)
|
|||
|
||||
color_rgb *color_parse(char *colorname)
|
||||
{
|
||||
XColor xcol;
|
||||
|
||||
g_assert(colorname != NULL);
|
||||
// get rgb values from colorname
|
||||
|
||||
XColor xcol;
|
||||
xcol.red = 0;
|
||||
xcol.green = 0;
|
||||
xcol.blue = 0;
|
||||
|
|
Loading…
Reference in a new issue