diff options
author | Bert <ber.t@gmx.com> | 2011-01-18 16:40:37 +0100 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-01-18 16:40:37 +0100 |
commit | 7121e7b468e133cda882c574bf1d6933c490ae94 (patch) | |
tree | 6bd9966e5b2243850270f2c9d0b9892ec0f28c7a /image.c | |
parent | 22db1ed3614cbaf67bac7d24f86ebbe824188bef (diff) |
Initialize imlib2
Diffstat (limited to 'image.c')
-rw-r--r-- | image.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -16,6 +16,17 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include <Imlib2.h> + #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); +} |