diff options
author | Bert <ber.t@gmx.com> | 2011-03-15 13:55:52 +0100 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-03-15 13:55:52 +0100 |
commit | 55659ffcc38d547b2a1525b9e444ae9ec8394643 (patch) | |
tree | b6b378f7d1110854de212a457f06453855bbefe4 /window.c | |
parent | aadba6f7e57274f8e1337edb093cb73c8381ba91 (diff) |
Use imlib-handles in thumbs.c instead of pixmaps
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 29 |
1 files changed, 6 insertions, 23 deletions
@@ -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; |