From 55659ffcc38d547b2a1525b9e444ae9ec8394643 Mon Sep 17 00:00:00 2001 From: Bert Date: Tue, 15 Mar 2011 13:55:52 +0100 Subject: Use imlib-handles in thumbs.c instead of pixmaps --- window.c | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) (limited to 'window.c') diff --git a/window.c b/window.c index 75eac60..7e29176 100644 --- a/window.c +++ b/window.c @@ -232,18 +232,6 @@ void win_toggle_fullscreen(win_t *win) { SubstructureNotifyMask, &ev); } -Pixmap win_create_pixmap(win_t *win, int w, int h) { - if (!win) - return 0; - - return XCreatePixmap(win->env.dpy, win->xwin, w, h, win->env.depth); -} - -void win_free_pixmap(win_t *win, Pixmap pm) { - if (win && pm) - XFreePixmap(win->env.dpy, pm); -} - void win_clear(win_t *win) { win_env_t *e; XGCValues gcval; @@ -262,9 +250,12 @@ void win_clear(win_t *win) { XFillRectangle(e->dpy, win->pm, gc, 0, 0, e->scrw, e->scrh); } -void win_draw_pixmap(win_t *win, Pixmap pm, int x, int y, int w, int h) { - if (win) - XCopyArea(win->env.dpy, pm, win->pm, gc, 0, 0, w, h, x, y); +void win_draw(win_t *win) { + if (!win) + return; + + XSetWindowBackgroundPixmap(win->env.dpy, win->xwin, win->pm); + XClearWindow(win->env.dpy, win->xwin); } void win_draw_rect(win_t *win, Pixmap pm, int x, int y, int w, int h, @@ -284,14 +275,6 @@ void win_draw_rect(win_t *win, Pixmap pm, int x, int y, int w, int h, XDrawRectangle(win->env.dpy, pm, gc, x, y, w, h); } -void win_draw(win_t *win) { - if (!win) - return; - - XSetWindowBackgroundPixmap(win->env.dpy, win->xwin, win->pm); - XClearWindow(win->env.dpy, win->xwin); -} - void win_set_title(win_t *win, const char *title) { if (!win) return; -- cgit v1.2.3