From 7121e7b468e133cda882c574bf1d6933c490ae94 Mon Sep 17 00:00:00 2001 From: Bert Date: Tue, 18 Jan 2011 16:40:37 +0100 Subject: Initialize imlib2 --- image.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'image.c') diff --git a/image.c b/image.c index e5503f1..2ffa07c 100644 --- a/image.c +++ b/image.c @@ -16,6 +16,17 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include + #include "sxiv.h" #include "image.h" +void imlib_init(win_t *win) { + if (!win) + return; + + imlib_context_set_display(win->env.dpy); + imlib_context_set_visual(win->env.vis); + imlib_context_set_colormap(win->env.cmap); + imlib_context_set_drawable(win->xwin); +} -- cgit v1.2.3