X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fapple2-main.c;h=883e42b02be876c4f75f0106a7c01d77559961b9;hb=2d04c4f22466851aedb6ed0f2919d148f726b889;hp=1e82b42f555feade3e23a47173c7f46fc235fc58;hpb=9c9d475ff889ed8be02e8ce8c17da28b93278fca;p=xscreensaver diff --git a/hacks/apple2-main.c b/hacks/apple2-main.c index 1e82b42f..883e42b0 100644 --- a/hacks/apple2-main.c +++ b/hacks/apple2-main.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1998-2004 Jamie Zawinski +/* xscreensaver, Copyright (c) 1998-2005 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 @@ -539,7 +539,7 @@ load_image (Display *dpy, Window window, char **image_filename_r) XGetWindowAttributes (dpy, window, &xgwa); p = XCreatePixmap (dpy, window, xgwa.width, xgwa.height, xgwa.depth); - load_random_image (xgwa.screen, window, p, image_filename_r); + load_random_image (xgwa.screen, window, p, image_filename_r, NULL); image = XGetImage (dpy, p, 0, 0, xgwa.width, xgwa.height, ~0, ZPixmap); XFreePixmap (dpy, p); p = 0; @@ -678,7 +678,10 @@ void slideshow_controller(apple2_sim_t *sim, int *stepno, if (dot) *dot=0; } if (strlen(basename)>20) basename[20]=0; - for (s=basename; *s; s++) *s = toupper (*s); + for (s=basename; *s; s++) { + *s = toupper (*s); + if (*s <= ' ') *s = '_'; + } sprintf(sim->typing_buf, "BLOAD %s\n", basename); sim->typing = sim->typing_buf;