image_support.c (vnstat-2.8) | : | image_support.c (vnstat-2.9) | ||
---|---|---|---|---|
skipping to change at line 365 | skipping to change at line 365 | |||
} | } | |||
void drawarrowright(IMAGECONTENT *ic, const int x, const int y) | void drawarrowright(IMAGECONTENT *ic, const int x, const int y) | |||
{ | { | |||
gdImageLine(ic->im, x, y, x - 3, y - 2, ic->ctext); | gdImageLine(ic->im, x, y, x - 3, y - 2, ic->ctext); | |||
gdImageLine(ic->im, x, y, x - 3, y + 2, ic->ctext); | gdImageLine(ic->im, x, y, x - 3, y + 2, ic->ctext); | |||
gdImageLine(ic->im, x - 3, y - 2, x - 3, y + 2, ic->ctext); | gdImageLine(ic->im, x - 3, y - 2, x - 3, y + 2, ic->ctext); | |||
gdImageLine(ic->im, x + 1, y, x - 1, y, ic->ctext); | gdImageLine(ic->im, x + 1, y, x - 1, y, ic->ctext); | |||
} | } | |||
void hextorgb(char *input, int *rgb) | void hextorgb(const char *input, int *rgb) | |||
{ | { | |||
int offset; | int offset; | |||
char hex[3], dec[4]; | char hex[3], dec[4]; | |||
if (input[0] == '#') { | if (input[0] == '#') { | |||
offset = 1; | offset = 1; | |||
} else { | } else { | |||
offset = 0; | offset = 0; | |||
} | } | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |