1.1 --- a/bitblt.h Mon Aug 26 05:43:49 2002 +0000 1.2 +++ b/bitblt.h Mon Aug 26 06:03:55 2002 +0000 1.3 @@ -1,7 +1,7 @@ 1.4 typedef struct Point 1.5 { 1.6 - s32 x; 1.7 - s32 y; 1.8 + int32_t x; 1.9 + int32_t y; 1.10 } Point; 1.11 1.12 typedef struct Rect 1.13 @@ -10,18 +10,18 @@ 1.14 Point max; 1.15 } Rect; 1.16 1.17 -static inline s32 rect_width (Rect *r) 1.18 +static inline int32_t rect_width (Rect *r) 1.19 { 1.20 return (r->max.x - r->min.x); 1.21 } 1.22 1.23 -static inline s32 rect_height (Rect *r) 1.24 +static inline int32_t rect_height (Rect *r) 1.25 { 1.26 return (r->max.y - r->min.y); 1.27 } 1.28 1.29 1.30 -typedef u32 word_type; 1.31 +typedef uint32_t word_type; 1.32 #define BITS_PER_WORD (8 * sizeof (word_type)) 1.33 #define ALL_ONES (~ 0U) 1.34 1.35 @@ -30,7 +30,7 @@ 1.36 { 1.37 word_type *bits; 1.38 Rect rect; 1.39 - u32 row_words; 1.40 + uint32_t row_words; 1.41 } Bitmap; 1.42 1.43 1.44 @@ -43,8 +43,8 @@ 1.45 Bitmap *create_bitmap (Rect *rect); 1.46 void free_bitmap (Bitmap *bitmap); 1.47 1.48 -boolean get_pixel (Bitmap *bitmap, Point coord); 1.49 -void set_pixel (Bitmap *bitmap, Point coord, boolean value); 1.50 +bool get_pixel (Bitmap *bitmap, Point coord); 1.51 +void set_pixel (Bitmap *bitmap, Point coord, bool value); 1.52 1.53 1.54 Bitmap *bitblt (Bitmap *src_bitmap, 1.55 @@ -68,4 +68,4 @@ 1.56 void rot_270 (Bitmap *src); /* transpose + flip_v */ 1.57 1.58 1.59 -void reverse_bits (u8 *p, int byte_count); 1.60 +void reverse_bits (uint8_t *p, int byte_count);