From b2a2a62b7b8a066467d7e8ef520fef7c17e3c5ca Mon Sep 17 00:00:00 2001 From: Bert Date: Sun, 11 Sep 2011 21:01:24 +0200 Subject: Added own bool type --- image.h | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'image.h') diff --git a/image.h b/image.h index ca699c8..316729a 100644 --- a/image.h +++ b/image.h @@ -34,7 +34,7 @@ typedef struct { int cap; int cnt; int sel; - unsigned char animate; + bool animate; } multi_img_t; typedef struct { @@ -44,13 +44,13 @@ typedef struct { float zoom; scalemode_t scalemode; - unsigned char re; - unsigned char checkpan; - unsigned char dirty; - unsigned char aa; - unsigned char alpha; + bool re; + bool checkpan; + bool dirty; + bool aa; + bool alpha; - unsigned char slideshow; + bool slideshow; int ss_delay; /* in ms */ int x; @@ -61,28 +61,28 @@ typedef struct { void img_init(img_t*, win_t*); -int img_load(img_t*, const fileinfo_t*); -void img_close(img_t*, int); +bool img_load(img_t*, const fileinfo_t*); +void img_close(img_t*, bool); void img_render(img_t*, win_t*); -int img_fit_win(img_t*, win_t*); -int img_center(img_t*, win_t*); +bool img_fit_win(img_t*, win_t*); +bool img_center(img_t*, win_t*); -int img_zoom(img_t*, win_t*, float); -int img_zoom_in(img_t*, win_t*); -int img_zoom_out(img_t*, win_t*); +bool img_zoom(img_t*, win_t*, float); +bool img_zoom_in(img_t*, win_t*); +bool img_zoom_out(img_t*, win_t*); -int img_move(img_t*, win_t*, int, int); -int img_pan(img_t*, win_t*, direction_t, int); -int img_pan_edge(img_t*, win_t*, direction_t); +bool img_move(img_t*, win_t*, int, int); +bool img_pan(img_t*, win_t*, direction_t, bool); +bool img_pan_edge(img_t*, win_t*, direction_t); void img_rotate_left(img_t*, win_t*); void img_rotate_right(img_t*, win_t*); void img_toggle_antialias(img_t*); -int img_frame_navigate(img_t*, int); -int img_frame_animate(img_t*, int); +bool img_frame_navigate(img_t*, int); +bool img_frame_animate(img_t*, bool); #endif /* IMAGE_H */ -- cgit v1.2.3-70-g09d2