- gcv.foreground = default_fg_pixel =
- get_pixel_resource("foreground", "Foreground", dpy, cmap);
- gcv.font = scoreFont->fid;
- draw_gc = XCreateGC(dpy, window, GCForeground | GCFont, &gcv);
- gcv.font = font->fid;
- level_gc = XCreateGC(dpy, window, GCForeground | GCFont, &gcv);
- XSetForeground (dpy, level_gc, city[0].color.pixel);
- gcv.foreground = get_pixel_resource("background", "Background", dpy, cmap);
- erase_gc = XCreateGC(dpy, window, GCForeground, &gcv);
+ gcv.foreground = st->default_fg_pixel =
+ get_pixel_resource(st->dpy, st->cmap, "foreground", "Foreground");
+ gcv.font = st->scoreFont->fid;
+ st->draw_gc = XCreateGC(st->dpy, st->window, GCForeground | GCFont, &gcv);
+ gcv.font = st->font->fid;
+ st->level_gc = XCreateGC(st->dpy, st->window, GCForeground | GCFont, &gcv);
+ XSetForeground (st->dpy, st->level_gc, st->city[0].color.pixel);
+ gcv.foreground = get_pixel_resource(st->dpy, st->cmap, "background", "Background");
+ st->erase_gc = XCreateGC(st->dpy, st->window, GCForeground, &gcv);
+
+# ifdef HAVE_COCOA
+ jwxyz_XSetAntiAliasing (st->dpy, st->erase_gc, False);
+ jwxyz_XSetAntiAliasing (st->dpy, st->draw_gc, False);
+# endif
+