From 8919204a2e666e12216240a792bfff7a391d4d43 Mon Sep 17 00:00:00 2001 From: Bert Date: Wed, 16 Feb 2011 18:16:00 +0100 Subject: Render thumbnails --- window.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'window.c') 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; -- cgit v1.2.3