Changeset 17 for abuse/trunk/src/imlib/targa.cpp
- Timestamp:
- Nov 10, 2005, 9:41:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/imlib/targa.cpp
r4 r17 14 14 } 15 15 16 u nsigned charid,color_map,im_type;16 uint8_t id,color_map,im_type; 17 17 18 id=fp->read_ byte();19 color_map=fp->read_ byte();20 im_type=fp->read_ byte();18 id=fp->read_uint8(); 19 color_map=fp->read_uint8(); 20 im_type=fp->read_uint8(); 21 21 22 22 if (color_map!=0) … … 32 32 } 33 33 34 fp->read_ short();35 fp->read_ short();36 fp->read_ byte();34 fp->read_uint16(); 35 fp->read_uint16(); 36 fp->read_uint8(); 37 37 38 fp->read_ short();39 fp->read_ short();38 fp->read_uint16(); 39 fp->read_uint16(); 40 40 41 41 42 int w=fp->read_ short();43 int h=fp->read_ short();44 u nsigned char bpp=fp->read_byte();45 u nsigned char im_des=fp->read_byte();42 int w=fp->read_uint16(); 43 int h=fp->read_uint16(); 44 uint8_t bpp=fp->read_uint8(); 45 uint8_t im_des=fp->read_uint8(); 46 46 47 47 if (bpp!=32) … … 54 54 55 55 int x,y; 56 u nsigned charctrl;57 u nsigned charbgra[4],*sl,c,lr=0,lg=0,lb=0,ll=0,lc=0;56 uint8_t ctrl; 57 uint8_t bgra[4],*sl,c,lr=0,lg=0,lb=0,ll=0,lc=0; 58 58 59 59 … … 68 68 for (x=0;x<w;) 69 69 { 70 ctrl=fp->read_ byte();70 ctrl=fp->read_uint8(); 71 71 if (ctrl&0x80) 72 72 {
Note: See TracChangeset
for help on using the changeset viewer.