http://www.jwz.org/xscreensaver/xscreensaver-5.12.tar.gz
[xscreensaver] / hacks / triangle.c
index 1ccc5264ee3c3dba6806357e7d71a83b0d1e00b5..3f413432564b15c8f46f4f75db4043d443e9ca2c 100644 (file)
@@ -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,