Mercurial > sdl-ios-xcode
diff touchTest/touchTest.c @ 4650:7ad7a473b086
More fixes for windows. Disabled tablet code.
author | jimtla |
---|---|
date | Thu, 10 Jun 2010 00:15:17 -0400 |
parents | 35a80b0791aa |
children | 3c4e0130c9b1 |
line wrap: on
line diff
--- a/touchTest/touchTest.c Sat Jun 05 01:58:56 2010 -0400 +++ b/touchTest/touchTest.c Thu Jun 10 00:15:17 2010 -0400 @@ -55,7 +55,7 @@ colour = SDL_MapRGB( screen->format, (col>>16)&0xFF, (col>>8)&0xFF, col&0xFF); - pixmem32 = (Uint32*) screen->pixels + y*screen->pitch/BPP + x; + pixmem32 = (Uint32*) screen->pixels + y*screen->pitch/screen->format->BytesPerPixel + x; //TODO : Check this. May cause crash. *pixmem32 = colour; } @@ -219,6 +219,7 @@ } //And draw DrawScreen(screen,h); + printf("Things\n"); /* for(i=0;i<512;i++) if(keystat[i]) printf("%i\n",i);