http://www.mirrorservice.org/sites/master.us.finkmirrors.net/distfiles/md5/fa43fdd68d...
[xscreensaver] / driver / splash.c
index 55c4e9be37398756e51e71b56ede4d3b1f00e4e8..debeaff44bd5ded32f125a3db94aabd982fc4c0b 100644 (file)
@@ -1,4 +1,4 @@
-/* xscreensaver, Copyright (c) 1991-2002 Jamie Zawinski <jwz@netscape.com>
+/* xscreensaver, Copyright (c) 1991-2003 Jamie Zawinski <jwz@netscape.com>
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
  * documentation for any purpose is hereby granted without fee, provided that
@@ -404,7 +404,8 @@ make_splash_dialog (saver_info *si)
                   attrmask, &attrs);
   XSetWindowBackground (si->dpy, si->splash_dialog, sp->background);
 
-  sp->logo_pixmap = xscreensaver_logo (si->dpy, si->splash_dialog, cmap,
+  sp->logo_pixmap = xscreensaver_logo (ssi->screen, ssi->current_visual,
+                                       si->splash_dialog, cmap,
                                        sp->background, 
                                        &sp->logo_pixels, &sp->logo_npixels,
                                        0, True);
@@ -732,6 +733,7 @@ handle_splash_event (saver_info *si, XEvent *event)
          if (which && sp->pressed == which)
            {
              destroy_splash_window (si);
+              sp = si->sp_data;
              switch (which)
                {
                case 1: do_demo (si); break;
@@ -747,8 +749,9 @@ handle_splash_event (saver_info *si, XEvent *event)
               /* click and release on the window but not in a button:
                  treat that as "dismiss the splash dialog." */
              destroy_splash_window (si);
+              sp = si->sp_data;
             }
-         sp->pressed = 0;
+         if (sp) sp->pressed = 0;
          update_splash_window (si);
        }
       break;