X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Fsplash.c;h=debeaff44bd5ded32f125a3db94aabd982fc4c0b;hb=96a411663168b0ba5432b407a83be55f3df0c802;hp=55c4e9be37398756e51e71b56ede4d3b1f00e4e8;hpb=cccbddbc4140cf9a06d7d95cc5c0ca36eb5d6e28;p=xscreensaver diff --git a/driver/splash.c b/driver/splash.c index 55c4e9be..debeaff4 100644 --- a/driver/splash.c +++ b/driver/splash.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1991-2002 Jamie Zawinski +/* xscreensaver, Copyright (c) 1991-2003 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 @@ -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;