aboutsummaryrefslogtreecommitdiff
path: root/image.h
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-02-25 12:08:12 +0100
committerBert <ber.t@gmx.com>2011-02-25 12:08:12 +0100
commitdafe7eac742301952c088d68a455586b0225a7bd (patch)
tree3a457e0cbd21e274f05df47162504363941c7272 /image.h
parent62fb69b3287addfc5f28db1117b2e314b68e761c (diff)
Refactored imlib context handling
Diffstat (limited to 'image.h')
-rw-r--r--image.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/image.h b/image.h
index fd5b0fe..8c6beec 100644
--- a/image.h
+++ b/image.h
@@ -19,6 +19,8 @@
#ifndef IMAGE_H
#define IMAGE_H
+#include <Imlib2.h>
+
#include "window.h"
typedef enum scalemode_e {
@@ -35,10 +37,11 @@ typedef enum pandir_e {
} pandir_t;
typedef struct img_s {
+ Imlib_Image *im;
+
float zoom;
scalemode_t scalemode;
- unsigned char valid;
unsigned char re;
unsigned char checkpan;
unsigned char aa;
@@ -54,6 +57,7 @@ void img_free(img_t*);
int img_check(const char*);
int img_load(img_t*, const char*);
+void img_close(img_t*);
void img_render(img_t*, win_t*);