summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-02-16 18:16:00 +0100
committerBert <ber.t@gmx.com>2011-02-16 18:16:00 +0100
commit8919204a2e666e12216240a792bfff7a391d4d43 (patch)
tree057989f1a75c90f7257cc08f118e0197c2e87cef /window.c
parent89ec18385b1d9e76463afd443b25c203a83c94cb (diff)
downloadnsxiv-8919204a2e666e12216240a792bfff7a391d4d43.tar.zst
Render thumbnails
Diffstat (limited to 'window.c')
-rw-r--r--window.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/window.c b/window.c
index 1be14c1..d585c55 100644
--- a/window.c
+++ b/window.c
@@ -219,6 +219,13 @@ Pixmap win_create_pixmap(win_t *win) {
win->env.depth);
}
+void win_draw_pixmap(win_t *win, Pixmap pm, int x, int y, int w, int h) {
+ if (!win)
+ return;
+
+ XCopyArea(win->env.dpy, pm, win->pm, bgc, 0, 0, w, h, x, y);
+}
+
void win_clear(win_t *win) {
win_env_t *e;
XGCValues gcval;