summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMichael Jennings <mej@kainx.org>2000-04-18 05:16:00 +0000
committerMichael Jennings <mej@kainx.org>2000-04-18 05:16:00 +0000
commit1e9bf450c4c0c81c6957482234b34de4051aa54e (patch)
treed454a97078ded8227a41ef6873a56af059a6d8a3 /utils
parent84e12faee35223a1fbc591a4a45a1b838e535e9e (diff)
downloadeterm-1e9bf450c4c0c81c6957482234b34de4051aa54e.tar.gz
Mon Apr 17 22:25:27 PDT 2000 Michael Jennings <mej@eterm.org>
I fixed the problem reported by Joakim Bodin <bodin@dreamhosted.com> with spawned processes. Also fixed Esetroot as reported by Wayne Johnson <bigman1@alltel.net>. Support for buttons higher than 5 was also added to the action bindings code for those (like me) with IntelliMouse Explorers and XFree86 4.0. :-) SVN revision: 2494
Diffstat (limited to 'utils')
-rw-r--r--utils/Esetroot.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/Esetroot.c b/utils/Esetroot.c
index afbed25..f22914b 100644
--- a/utils/Esetroot.c
+++ b/utils/Esetroot.c
@@ -97,7 +97,7 @@ main(int argc, char *argv[])
char *displayname = NULL;
char *fname = NULL;
Imlib_Image im;
- Pixmap p, temp_pmap;
+ Pixmap p, temp_pmap, m;
register unsigned char i;
GC gc;
XGCValues gcv;
@@ -166,7 +166,7 @@ main(int argc, char *argv[])
}
imlib_context_set_display(Xdisplay);
imlib_context_set_visual(DefaultVisual(Xdisplay, DefaultScreen(Xdisplay)));
- im = imlib_load_image(fname);
+ im = imlib_load_image_immediately(fname);
if (im == NULL) {
fprintf(stderr, "%s: Unable to load image file \"%s\".\n", *argv, fname);
exit(1);
@@ -214,7 +214,8 @@ main(int argc, char *argv[])
imlib_context_set_anti_alias(1);
imlib_context_set_dither(1);
imlib_context_set_blend(0);
- imlib_render_pixmaps_for_whole_image_at_size(&temp_pmap, NULL, 0, w, h);
+ imlib_context_set_drawable(Xroot);
+ imlib_render_pixmaps_for_whole_image_at_size(&temp_pmap, &m, 0, w, h);
if (debug) {
fprintf(stderr, "%s:%d: Rendered at %dx%d onto pixmap 0x%08x\n", __FILE__, __LINE__, w, h, (unsigned int) temp_pmap);
}