Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
4649:35a80b0791aa | 4650:7ad7a473b086 |
---|---|
53 if((unsigned)x > screen->w) return; | 53 if((unsigned)x > screen->w) return; |
54 if((unsigned)y > screen->h) return; | 54 if((unsigned)y > screen->h) return; |
55 | 55 |
56 colour = SDL_MapRGB( screen->format, (col>>16)&0xFF, (col>>8)&0xFF, col&0xFF); | 56 colour = SDL_MapRGB( screen->format, (col>>16)&0xFF, (col>>8)&0xFF, col&0xFF); |
57 | 57 |
58 pixmem32 = (Uint32*) screen->pixels + y*screen->pitch/BPP + x; | 58 pixmem32 = (Uint32*) screen->pixels + y*screen->pitch/screen->format->BytesPerPixel + x; //TODO : Check this. May cause crash. |
59 *pixmem32 = colour; | 59 *pixmem32 = colour; |
60 } | 60 } |
61 | 61 |
62 void drawCircle(SDL_Surface* screen,int x,int y,int r,int c) | 62 void drawCircle(SDL_Surface* screen,int x,int y,int r,int c) |
63 { | 63 { |
217 break; | 217 break; |
218 } | 218 } |
219 } | 219 } |
220 //And draw | 220 //And draw |
221 DrawScreen(screen,h); | 221 DrawScreen(screen,h); |
222 printf("Things\n"); | |
222 /* | 223 /* |
223 for(i=0;i<512;i++) | 224 for(i=0;i<512;i++) |
224 if(keystat[i]) printf("%i\n",i); | 225 if(keystat[i]) printf("%i\n",i); |
225 printf("Buttons:%i\n",bstatus); | 226 printf("Buttons:%i\n",bstatus); |
226 */ | 227 */ |