- Timestamp:
- Nov 16, 2003, 12:26:54 PM (17 years ago)
- Location:
- libcaca/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/configure.ac
r185 r187 57 57 CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer" 58 58 # Code qui fait des warnings == code de porc == deux baffes dans ta gueule 59 CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs "59 CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare" 60 60 61 61 AC_OUTPUT([ -
libcaca/trunk/libcaca/blit.c
r185 r187 52 52 pitch = (3 * w + 3) / 4 * 4; 53 53 54 for(y = y1 > 0 ? y1 : 0; y <= y2 && y <= caca_get_height(); y++)55 for(x = x1 > 0 ? x1 : 0; x <= x2 && x <= caca_get_width(); x++)54 for(y = y1 > 0 ? y1 : 0; y <= y2 && y <= (int)caca_get_height(); y++) 55 for(x = x1 > 0 ? x1 : 0; x <= x2 && x <= (int)caca_get_width(); x++) 56 56 { 57 57 int fromx = w * (x - x1) / (x2 - x1 + 1); -
libcaca/trunk/libcaca/caca.c
r185 r187 258 258 { 259 259 #define IDLE_USEC 10000 260 static unsignedint lastticks = 0;261 unsignedint ticks = lastticks + _caca_getticks();260 static int lastticks = 0; 261 int ticks = lastticks + _caca_getticks(); 262 262 263 263 #if defined(USE_SLANG) … … 275 275 /* Wait until _caca_delay + time of last call */ 276 276 ticks += _caca_getticks(); 277 for(; ticks < _caca_delay - IDLE_USEC; ticks += _caca_getticks())277 for(; ticks + IDLE_USEC < (int)_caca_delay; ticks += _caca_getticks()) 278 278 usleep(IDLE_USEC); 279 279 … … 284 284 285 285 /* If we drifted too much, it's bad, bad, bad. */ 286 if(lastticks > _caca_delay)286 if(lastticks > (int)_caca_delay) 287 287 lastticks = 0; 288 288 } -
libcaca/trunk/libcaca/conic.c
r185 r187 184 184 uint8_t b = 0; 185 185 186 if(xo + x >= 0 && xo + x < caca_get_width())186 if(xo + x >= 0 && xo + x < (int)caca_get_width()) 187 187 b |= 0x1; 188 if(xo - x >= 0 && xo - x < caca_get_width())188 if(xo - x >= 0 && xo - x < (int)caca_get_width()) 189 189 b |= 0x2; 190 if(yo + y >= 0 && yo + y < caca_get_height())190 if(yo + y >= 0 && yo + y < (int)caca_get_height()) 191 191 b |= 0x4; 192 if(yo - y >= 0 && yo - y < caca_get_height())192 if(yo - y >= 0 && yo - y < (int)caca_get_height()) 193 193 b |= 0x8; 194 194 -
libcaca/trunk/libcaca/graphics.c
r185 r187 64 64 void caca_putchar(int x, int y, char c) 65 65 { 66 if(x < 0 || x >= caca_get_width() || y < 0 || y >= caca_get_height()) 66 if(x < 0 || x >= (int)caca_get_width() || 67 y < 0 || y >= (int)caca_get_height()) 67 68 return; 68 69 … … 83 84 void caca_putstr(int x, int y, const char *s) 84 85 { 85 int len;86 unsigned int len; 86 87 87 if(y < 0 || y >= caca_get_height() || x >=caca_get_width())88 if(y < 0 || y >= (int)caca_get_height() || x >= (int)caca_get_width()) 88 89 return; 89 90 … … 130 131 va_list args; 131 132 132 if(y < 0 || y >= caca_get_height() || x >=caca_get_width())133 if(y < 0 || y >= (int)caca_get_height() || x >= (int)caca_get_width()) 133 134 return; 134 135 -
libcaca/trunk/src/weapons.c
r185 r187 50 50 void draw_weapons(game *g, weapons *wp) 51 51 { 52 int i;52 unsigned int i; 53 53 54 54 for(i = 0; i < WEAPONS; i++) … … 96 96 void update_weapons(game *g, weapons *wp) 97 97 { 98 int i, j, dist, xmin, ymin, dx, dy, xnew, ynew; 98 unsigned int i, j; 99 int dist, xmin, ymin, dx, dy, xnew, ynew; 99 100 100 101 for(i = 0; i < WEAPONS; i++)
Note: See TracChangeset
for help on using the changeset viewer.