Krolyxon
Commit 99dfd14

Branches

Refs →

nsxiv99dfd14

Fixed Imlib file handle type, issue #117

Author
Bert Münnich
Date
2013-12-13 13:04 +0100
Parent
9ab9cee
Commit
99dfd14919f55742cbd311bd6032ce0f1dc361c5

+8 −8

5 files changed

  1. M Makefile +1 −1
  2. M image.c +1 −1
  3. M image.h +2 −2
  4. M thumbs.c +3 −3
  5. M thumbs.h +1 −1
M Makefile View
@@ -1,4 +1,4 @@
1−VERSION = git-20131117
1+VERSION = git-20131213
22
33 PREFIX = /usr/local
44 MANPREFIX = $(PREFIX)/share/man
M image.c View
@@ -126,7 +126,7 @@ bool img_load_gif(img_t *img, const fileinfo_t *file)
126126 ColorMapObject *cmap;
127127 DATA32 bgpixel, *data, *ptr;
128128 DATA32 *prev_frame = NULL;
129− Imlib_Image *im;
129+ Imlib_Image im;
130130 int i, j, bg, r, g, b;
131131 int x, y, w, h, sw, sh;
132132 int px, py, pw, ph;
M image.h View
@@ -25,7 +25,7 @@
2525 #include "window.h"
2626
2727 typedef struct {
28− Imlib_Image *im;
28+ Imlib_Image im;
2929 unsigned int delay;
3030 } img_frame_t;
3131
@@ -38,7 +38,7 @@ typedef struct {
3838 } multi_img_t;
3939
4040 typedef struct {
41− Imlib_Image *im;
41+ Imlib_Image im;
4242 int w;
4343 int h;
4444
M thumbs.c View
@@ -62,11 +62,11 @@ char* tns_cache_filepath(const char *filepath)
6262 return cfile;
6363 }
6464
65−Imlib_Image* tns_cache_load(const char *filepath)
65+Imlib_Image tns_cache_load(const char *filepath)
6666 {
6767 char *cfile;
6868 struct stat cstats, fstats;
69− Imlib_Image *im = NULL;
69+ Imlib_Image im = NULL;
7070
7171 if (filepath == NULL)
7272 return NULL;
@@ -223,7 +223,7 @@ bool tns_load(tns_t *tns, int n, const fileinfo_t *file,
223223 bool use_cache, cache_hit = false;
224224 float z, zw, zh;
225225 thumb_t *t;
226− Imlib_Image *im;
226+ Imlib_Image im;
227227 const char *fmt;
228228
229229 if (tns == NULL || tns->thumbs == NULL)
M thumbs.h View
@@ -27,7 +27,7 @@
2727
2828 typedef struct {
2929 const fileinfo_t *file;
30− Imlib_Image *im;
30+ Imlib_Image im;
3131 int w;
3232 int h;
3333 int x;