X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=OSX%2Fjwxyz.m;h=7fce07d45e48c49e7c44bee83e03bc4a1f79a909;hp=e96e03b183603db11761344de4a113852fea8dbd;hb=ec8d2b32b63649e6d32bdfb306eda062769af823;hpb=1d7308dd9032b39a92fda86e8c2db04218b45fbf diff --git a/OSX/jwxyz.m b/OSX/jwxyz.m index e96e03b1..7fce07d4 100644 --- a/OSX/jwxyz.m +++ b/OSX/jwxyz.m @@ -963,8 +963,8 @@ XFillPolygon (Display *dpy, Drawable d, GC gc, int i; push_fg_gc (d, gc, YES); CGContextBeginPath (d->cgc); + float x = 0, y = 0; for (i = 0; i < npoints; i++) { - float x, y; if (i > 0 && mode == CoordModePrevious) { x += points[i].x; y -= points[i].y; @@ -1265,7 +1265,7 @@ XParseColor (Display *dpy, Colormap cmap, const char *spec, XColor *ret) g = (hex[spec[3]] << 4) | hex[spec[4]]; b = (hex[spec[5]] << 4) | hex[spec[6]]; } else if (!strcasecmp(spec,"black")) { - r = g = b = 0; +// r = g = b = 0; } else if (!strcasecmp(spec,"white")) { r = g = b = 255; } else if (!strcasecmp(spec,"red")) {