X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Fxscreensaver.c;h=6ecaac324098b4d4557798e13ed36cfa193bc5f3;hb=14627f4038ada5d11456f3770090f3c39740d70f;hp=9b26390bd6b40c092003ed5e65d192cac371fa42;hpb=06e9a7886a77cad92f9ddbc169d6d199a4d8b76d;p=xscreensaver diff --git a/driver/xscreensaver.c b/driver/xscreensaver.c index 9b26390b..6ecaac32 100644 --- a/driver/xscreensaver.c +++ b/driver/xscreensaver.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1991-1999 Jamie Zawinski +/* xscreensaver, Copyright (c) 1991-2000 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -219,7 +219,7 @@ do_help (saver_info *si) fflush (stdout); fflush (stderr); fprintf (stdout, "\ -xscreensaver %s, copyright (c) 1991-1999 by Jamie Zawinski \n\ +xscreensaver %s, copyright (c) 1991-2000 by Jamie Zawinski \n\ The standard Xt command-line options are accepted; other options include:\n\ \n\ -timeout When the screensaver should activate.\n\ @@ -376,6 +376,7 @@ startup_ehandler (String name, String type, String class, " the parts of the manual that talk about XAUTH, XDM,\n" " and root logins?\n" "\n" + " http://www.jwz.org/xscreensaver/faq.html\n" " http://www.jwz.org/xscreensaver/man.html\n" "\n", blurb()); @@ -593,7 +594,7 @@ print_banner (saver_info *si) if (p->verbose_p) fprintf (stderr, - "%s %s, copyright (c) 1991-1999 " + "%s %s, copyright (c) 1991-2000 " "by Jamie Zawinski .\n", progname, si->version); @@ -649,7 +650,7 @@ print_banner (saver_info *si) /* Examine all of the display's screens, and populate the `saver_screen_info' - structures. + structures. Make sure this is called after hack_environment() sets $PATH. */ static void initialize_per_screen_info (saver_info *si, Widget toplevel_shell) @@ -676,6 +677,9 @@ initialize_per_screen_info (saver_info *si, Widget toplevel_shell) ssi->current_visual = ssi->default_visual; ssi->current_depth = visual_depth (ssi->screen, ssi->current_visual); + /* Execute a subprocess to find the GL visual. */ + ssi->best_gl_visual = get_best_gl_visual (ssi); + if (ssi == si->default_screen) /* Since this is the default screen, use the one already created. */ ssi->toplevel_shell = toplevel_shell; @@ -1071,7 +1075,7 @@ main (int argc, char **argv) global_si_kludge = si; /* I hate C so much... */ # undef ya_rand_init - ya_rand_init ((int) time ((time_t *) 0)); + ya_rand_init (0); save_argv (argc, argv); set_version_string (si, &argc, argv);