X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Ftriangle.c;h=3f413432564b15c8f46f4f75db4043d443e9ca2c;hb=50be9bb40dc60130c99ffa568e6677779904ff70;hp=1ccc5264ee3c3dba6806357e7d71a83b0d1e00b5;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/triangle.c b/hacks/triangle.c index 1ccc5264..3f413432 100644 --- a/hacks/triangle.c +++ b/hacks/triangle.c @@ -47,7 +47,9 @@ static const char sccsid[] = "@(#)triangle.c 4.04 97/07/28 xlockmore"; #ifdef STANDALONE # define DEFAULTS "*delay: 10000 \n" \ - "*ncolors: 128 \n" + "*ncolors: 128 \n" \ + "*fpsSolid: true \n" \ + # define SMOOTH_COLORS # define reshape_triangle 0 # define triangle_handle_event 0 @@ -299,6 +301,8 @@ draw_triangle (ModeInfo * mi) { free_colors(mi->dpy, mi->xgwa.colormap, mi->colors, mi->npixels); + mi->npixels = + get_integer_resource (mi->dpy, "ncolors", "Integer"); make_smooth_colormap (mi->dpy, mi->xgwa.visual, mi->xgwa.colormap, mi->colors, &mi->npixels,