http://ftp.x.org/contrib/applications/xscreensaver-3.20.tar.gz
[xscreensaver] / hacks / xsublim.c
index 231bddc4c6f5ae4a10864e0aef4d8a5d97881ec3..b4cd5ba212d42f2c984656e8e45fbda792b42d1c 100644 (file)
 */
 
 
+/* Changelog ******************************************************************
+
+       1.0.1  19990716  Assume that XGetImage()/XDestroyImage() don't leak,
+                         which they apparently don't.  I have no idea how I
+                         convinced myself that they did.  Huh.  (greg@eod.com)
+       1.0.0  19990716  Initial release
+*/
+
+
 /* Arguments ******************************************************************
 
        -font font           Font to use
@@ -41,6 +50,8 @@
        -no-screensaver      Draw over active windows       
        -outline             Draw a contrasting outline around words (Default)
        -no-outline          Draw words without an outline
+       -center              Draw words in the center of the screen (Default)
+       -no-center           Draw words randomly around the screen
 */
 
 
@@ -86,6 +97,7 @@
 #include <X11/SGIScheme.h>
 #endif
 
+#include "yarandom.h"
 #include "usleep.h"
 #include "resources.h"
 
@@ -103,10 +115,12 @@ char*        defaults[] =
         "Submit.\\n"
         "Conform.\\n"
         "Obey.\\n"
+        "OBEY. OBEY. OBEY.\\n"
         "Consume.\\n"
         "Be silent.\\n"
         "Fear.\\n"
         "Waste.\\n"
+        "Money.\\n"
         "Watch TV.\\n"
         "Hate yourself.\\n"
         "Buy needlessly.\\n"
@@ -117,6 +131,9 @@ char*        defaults[] =
         "You serve no purpose.\\n"
         "Your contributions are ignored.\\n"
         "They are laughing at you.\\n"
+        "They lied to you.\\n"
+        "They read your mail.\\n"
+        "They know.\\n"
         "Surrender.\\n"
         "You will fail.\\n"
         "Never question.\\n"
@@ -734,11 +751,8 @@ int main(int argc,char* argv[])
                                         image_Y,image_Width,image_Height);
                                }
 
-                               /* Free the image (and it's goddamned structure
-                                  -- the man page for XCreateImage() lies,
-                                  lies, lies!) */
+                               /* Free the image */
                                XDestroyImage(image_Image);
-                               XFree(image_Image);
                        }
 
                        /* Restore the error handler, ungrab the server */