summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-03-15 13:55:52 +0100
committerBert <ber.t@gmx.com>2011-03-15 13:55:52 +0100
commit55659ffcc38d547b2a1525b9e444ae9ec8394643 (patch)
treeb6b378f7d1110854de212a457f06453855bbefe4 /window.c
parentaadba6f7e57274f8e1337edb093cb73c8381ba91 (diff)
downloadnsxiv-55659ffcc38d547b2a1525b9e444ae9ec8394643.tar.zst
Use imlib-handles in thumbs.c instead of pixmaps
Diffstat (limited to 'window.c')
-rw-r--r--window.c29
1 files changed, 6 insertions, 23 deletions
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;