summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-02-16 16:47:12 +0100
committerBert <ber.t@gmx.com>2011-02-16 16:47:12 +0100
commit7b497406136dabcce280bae3886a88ee77ebc1e7 (patch)
treeec183d7ff703de99d5f3e9eb1b65c0d11a046774 /window.c
parente8ed491ba9f2fe6df8f071e7c59e0174bb307a1b (diff)
downloadnsxiv-7b497406136dabcce280bae3886a88ee77ebc1e7.tar.zst
First things for thumbnail mode
Diffstat (limited to 'window.c')
-rw-r--r--window.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/window.c b/window.c
index 76a8e87..1be14c1 100644
--- a/window.c
+++ b/window.c
@@ -211,6 +211,14 @@ void win_toggle_fullscreen(win_t *win) {
SubstructureNotifyMask, &ev);
}
+Pixmap win_create_pixmap(win_t *win) {
+ if (!win)
+ return 0;
+
+ return XCreatePixmap(win->env.dpy, win->xwin, THUMB_SIZE, THUMB_SIZE,
+ win->env.depth);
+}
+
void win_clear(win_t *win) {
win_env_t *e;
XGCValues gcval;