projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://ftp.ksu.edu.tw/FTP/FreeBSD/distfiles/xscreensaver-4.20.tar.gz
[xscreensaver]
/
hacks
/
apple2-main.c
diff --git
a/hacks/apple2-main.c
b/hacks/apple2-main.c
index 1e82b42f555feade3e23a47173c7f46fc235fc58..883e42b02be876c4f75f0106a7c01d77559961b9 100644
(file)
--- a/
hacks/apple2-main.c
+++ b/
hacks/apple2-main.c
@@
-1,4
+1,4
@@
-/* xscreensaver, Copyright (c) 1998-200
4
Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 1998-200
5
Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
*
* 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);
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;
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;
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;
sprintf(sim->typing_buf, "BLOAD %s\n", basename);
sim->typing = sim->typing_buf;