diff options
author | Bert <ber.t@gmx.com> | 2011-02-16 18:16:00 +0100 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-02-16 18:16:00 +0100 |
commit | 8919204a2e666e12216240a792bfff7a391d4d43 (patch) | |
tree | 057989f1a75c90f7257cc08f118e0197c2e87cef /window.c | |
parent | 89ec18385b1d9e76463afd443b25c203a83c94cb (diff) |
Render thumbnails
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |