X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fxsublim.c;h=9f93758a14ca6acba21aa1cea45ab325d3f7af1f;hb=0ed85ca0e4b0eae40a4f50a51d63f2f41e45373a;hp=81104d7fea13038182ccf183a1e2c005176ab5b1;hpb=c596d1306f5f92f7eab76224d3b049980a14adcb;p=xscreensaver diff --git a/hacks/xsublim.c b/hacks/xsublim.c index 81104d7f..9f93758a 100644 --- a/hacks/xsublim.c +++ b/hacks/xsublim.c @@ -28,6 +28,15 @@ */ +/* 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 @@ -449,8 +458,10 @@ int main(int argc,char* argv[]) signal(sig_Number,xsublim_Sig_Catch); } - /* Randomize */ - srandom((int)time((time_t*)0)); + /* Randomize -- only need to do this here because this program + doesn't use the `screenhack.h' or `lockmore.h' APIs. */ +# undef ya_rand_init + ya_rand_init ((int) time ((time_t *) 0)); /* Handle all the X nonsense */ #if defined(__sgi) @@ -742,11 +753,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 */