From a55738cf6d32e1d18a3c793df3c6c2797c25ebfa Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Tue, 17 Feb 2009 00:30:07 -0800 Subject: load jpegs scaled 1/8 first --- src/meh.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/meh.h') diff --git a/src/meh.h b/src/meh.h index a17d730..8465887 100644 --- a/src/meh.h +++ b/src/meh.h @@ -7,6 +7,7 @@ struct image; struct imageformat{ struct image *(*open)(FILE *); + void (*prep)(struct image *); int (*read)(struct image *); void (*close)(struct image *); }; @@ -30,11 +31,10 @@ struct image{ XImage *ximg; }; -XImage *ximage(struct image *img, unsigned int width, unsigned int height); void setaspect(unsigned int w, unsigned int h); void xinit(); void drawimage(XImage *ximg, unsigned int width, unsigned int height); -XImage *getimage(struct image *img, unsigned int width, unsigned int height); +XImage *getimage(struct image *img, unsigned int width, unsigned int height, int fast); #ifdef TDEBUG #define TDEBUG_START \ -- cgit v1.2.3