aboutsummaryrefslogtreecommitdiffstats
path: root/src/meh.h
diff options
context:
space:
mode:
authorJohn Hawthorn <jhawthor@uvic.ca>2009-02-16 23:35:05 -0800
committerJohn Hawthorn <jhawthor@uvic.ca>2009-02-16 23:35:05 -0800
commit7ef59ee989938c85e9cd3890c70e83309c9bf442 (patch)
tree9798ab712eac81967d61f55fe5eb198a4e1dd1d0 /src/meh.h
parent23b19c4213dfb780f1a2a1ca3ea05b34aed2dbc1 (diff)
downloadmirror-meh-7ef59ee989938c85e9cd3890c70e83309c9bf442.tar.gz
mirror-meh-7ef59ee989938c85e9cd3890c70e83309c9bf442.tar.bz2
mirror-meh-7ef59ee989938c85e9cd3890c70e83309c9bf442.zip
switched to using state to keep track of image
Diffstat (limited to 'src/meh.h')
-rw-r--r--src/meh.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/meh.h b/src/meh.h
index 7d62347..a17d730 100644
--- a/src/meh.h
+++ b/src/meh.h
@@ -13,20 +13,20 @@ struct imageformat{
typedef enum{
NONE,
- IMG,
- ALLOC,
- LINEAR,
- LINEARDRAWN,
- BILINEAR,
- BILINEARDRAWN,
-} drawstate;
+ FASTLOADED,
+ FASTSCALED,
+ FASTDRAWN,
+ LOADED,
+ SCALED,
+ DRAWN,
+ NOOP
+} imgstate;
struct image{
unsigned char *buf;
unsigned int bufwidth, bufheight;
struct imageformat *fmt;
- int redraw;
- drawstate state;
+ imgstate state;
XImage *ximg;
};