X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fdemon.c;h=947134841ec64482f0c09ccb891418bd9085f842;hb=8afc01a67be4fbf3f1cc0fce9adf01b5289a21c6;hp=ab7a19b9fc79d77e0a6ebe682e0496406634e253;hpb=50be9bb40dc60130c99ffa568e6677779904ff70;p=xscreensaver diff --git a/hacks/demon.c b/hacks/demon.c index ab7a19b9..94713484 100644 --- a/hacks/demon.c +++ b/hacks/demon.c @@ -58,8 +58,8 @@ static const char sccsid[] = "@(#)demon.c 5.00 2000/11/01 xlockmore"; "*size: -7 \n" \ "*ncolors: 64 \n" \ "*fpsSolid: true \n" \ + "*ignoreRotation: True \n" \ -# define reshape_demon 0 # define demon_handle_event 0 # define UNIFORM_COLORS # include "xlockmore.h" /* in xscreensaver distribution */ @@ -166,7 +166,6 @@ drawcell(ModeInfo * mi, int col, int row, unsigned char state) gc = MI_GC(mi); } else { XGCValues gcv; - #ifdef DO_STIPPLE gcv.stipple = dp->pixmaps[(state - 1) % (NUMSTIPPLES - 1)]; #endif /* DO_STIPPLE */ @@ -467,6 +466,10 @@ init_demon (ModeInfo * mi) #endif /* DO_STIPPLE */ free_struct(dp); +#ifdef HAVE_COCOA + jwxyz_XSetAntiAliasing (MI_DISPLAY(mi), MI_GC(mi), False); +#endif + for (nk = 0; nk < NEIGHBORKINDS; nk++) { if (neighbors == plots[0][nk]) { dp->neighbors = plots[0][nk]; @@ -947,6 +950,14 @@ draw_demon (ModeInfo * mi) } +ENTRYPOINT void +reshape_demon(ModeInfo * mi, int width, int height) +{ + XClearWindow (MI_DISPLAY (mi), MI_WINDOW(mi)); + init_demon (mi); +} + + ENTRYPOINT void release_demon (ModeInfo * mi) {