Mercurial > sdl-ios-xcode
diff src/video/fbcon/SDL_fbelo.c @ 1341:d02b552e5304
Configure dynamically generates SDL_config.h
I'm still wrestling with autoheader, but this should work for now...
Fixed lots of build problems with C library support disabled
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 12:11:33 +0000 |
parents | 604d73db6802 |
children | c71e05b4dc2e |
line wrap: on
line diff
--- a/src/video/fbcon/SDL_fbelo.c Tue Feb 07 11:18:21 2006 +0000 +++ b/src/video/fbcon/SDL_fbelo.c Tue Feb 07 12:11:33 2006 +0000 @@ -92,7 +92,7 @@ x = ((mousebuf[4] << 8) | mousebuf[3]); y = ((mousebuf[6] << 8) | mousebuf[5]); - if((abs(x - last_x) > ELO_SNAP_SIZE) || (abs(y - last_y) > ELO_SNAP_SIZE)) { + if((SDL_abs(x - last_x) > ELO_SNAP_SIZE) || (SDL_abs(y - last_y) > ELO_SNAP_SIZE)) { *dx = ((mousebuf[4] << 8) | mousebuf[3]); *dy = ((mousebuf[6] << 8) | mousebuf[5]); } @@ -335,19 +335,19 @@ /* try to read the calibration values */ buffer = SDL_getenv("SDL_ELO_MIN_X"); if(buffer) { - ELO_MIN_X = atoi(buffer); + ELO_MIN_X = SDL_atoi(buffer); } buffer = SDL_getenv("SDL_ELO_MAX_X"); if(buffer) { - ELO_MAX_X = atoi(buffer); + ELO_MAX_X = SDL_atoi(buffer); } buffer = SDL_getenv("SDL_ELO_MIN_Y"); if(buffer) { - ELO_MIN_Y = atoi(buffer); + ELO_MIN_Y = SDL_atoi(buffer); } buffer = SDL_getenv("SDL_ELO_MAX_Y"); if(buffer) { - ELO_MAX_Y = atoi(buffer); + ELO_MAX_Y = SDL_atoi(buffer); } #ifdef DEBUG_MOUSE