Changeset 247
- Timestamp:
- Dec 11, 2003, 5:56:35 PM (19 years ago)
- Location:
- libcaca/trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/src/Makefile.am
r214 r247 25 25 endif 26 26 libcaca_pic_a_SOURCES = $(libcaca_a_SOURCES) 27 libcaca_pic_a_CPPFLAGS = -fPIC 27 libcaca_pic_a_CPPFLAGS = -fPIC -DPIC 28 28 -
libcaca/trunk/src/bitmap.c
r246 r247 161 161 } 162 162 163 struct caca_bitmap *caca_create_bitmap(int bpp, int w, int h, int pitch, 164 int rmask, int gmask, int bmask, 165 int amask) 163 struct caca_bitmap *caca_create_bitmap(unsigned int bpp, unsigned int w, 164 unsigned int h, unsigned int pitch, 165 unsigned int rmask, unsigned int gmask, 166 unsigned int bmask, unsigned int amask) 166 167 { 167 168 struct caca_bitmap *bitmap; 168 169 169 /* Currently only this format is supported. Will improve later.*/170 /* Minor sanity test */ 170 171 if(!w || !h || !pitch || bpp > 32 || bpp < 8) 171 172 return NULL; … … 332 333 333 334 void caca_draw_bitmap(int x1, int y1, int x2, int y2, 334 const struct caca_bitmap *bitmap, char*pixels)335 const struct caca_bitmap *bitmap, void *pixels) 335 336 { 336 337 #if !NEW_RENDERER -
libcaca/trunk/src/caca.c
r246 r247 51 51 static void caca_init_terminal(void); 52 52 53 char *_caca_empty_line;54 char *_caca_scratch_line;55 56 53 #if defined(USE_NCURSES) 57 54 static mmask_t oldmask; 58 int _caca_attr[16*16];59 #endif60 61 #if defined(USE_CONIO)62 char *_caca_screen;63 55 #endif 64 56 -
libcaca/trunk/src/caca.h
r246 r247 213 213 */ 214 214 struct caca_bitmap; 215 struct caca_bitmap *caca_create_bitmap(int, int, int, int, int, int, int, int); 215 struct caca_bitmap *caca_create_bitmap(unsigned int, unsigned int, 216 unsigned int, unsigned int, 217 unsigned int, unsigned int, 218 unsigned int, unsigned int); 216 219 void caca_set_bitmap_palette(struct caca_bitmap *, unsigned int[], 217 220 unsigned int[], unsigned int[], unsigned int[]); 218 void caca_draw_bitmap(int, int, int, int, const struct caca_bitmap *, char*);221 void caca_draw_bitmap(int, int, int, int, const struct caca_bitmap *, void *); 219 222 void caca_free_bitmap(struct caca_bitmap *); 220 223 -
libcaca/trunk/src/caca_internals.h
r246 r247 33 33 extern int _caca_init_graphics(void); 34 34 35 #if defined(USE_NCURSES)36 extern int _caca_attr[];37 #endif38 39 #if defined(USE_CONIO)40 extern struct text_info _ti;41 extern char *_caca_screen;42 #endif43 44 35 extern unsigned int _caca_width; 45 36 extern unsigned int _caca_height; 46 37 47 extern char *_caca_empty_line;48 extern char *_caca_scratch_line;49 50 38 #endif /* __CACA_INTERNALS_H__ */ -
libcaca/trunk/src/graphics.c
r246 r247 58 58 #include "caca_internals.h" 59 59 60 #ifdef USE_CONIO 61 static struct text_info ti; 62 #endif 63 60 /* 61 * Global variables 62 */ 64 63 unsigned int _caca_width; 65 64 unsigned int _caca_height; 65 66 /* 67 * Local variables 68 */ 69 #if defined(USE_NCURSES) 70 static int _caca_attr[16*16]; 71 #endif 72 73 #if defined(USE_CONIO) 74 static struct text_info ti; 75 static char *_caca_screen; 76 #endif 77 78 static char *_caca_empty_line; 79 static char *_caca_scratch_line; 66 80 67 81 static unsigned int _caca_delay;
Note: See TracChangeset
for help on using the changeset viewer.