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 --- thumbs.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'thumbs.h') diff --git a/thumbs.h b/thumbs.h index 47f7ba8..92f5726 100644 --- a/thumbs.h +++ b/thumbs.h @@ -44,8 +44,8 @@ typedef struct { int rows; int first; int sel; - unsigned char alpha; - unsigned char dirty; + bool alpha; + bool dirty; } tns_t; void tns_clean_cache(tns_t*); @@ -53,13 +53,13 @@ void tns_clean_cache(tns_t*); void tns_init(tns_t*, int); void tns_free(tns_t*); -int tns_load(tns_t*, int, const fileinfo_t*, Bool, Bool); +bool tns_load(tns_t*, int, const fileinfo_t*, bool, bool); void tns_render(tns_t*, win_t*); -void tns_highlight(tns_t*, win_t*, int, Bool); +void tns_highlight(tns_t*, win_t*, int, bool); -int tns_move_selection(tns_t*, win_t*, direction_t); -int tns_scroll(tns_t*, direction_t); +bool tns_move_selection(tns_t*, win_t*, direction_t); +bool tns_scroll(tns_t*, direction_t); int tns_translate(tns_t*, int, int); -- cgit v1.2.3