diff test/nds-test-progs/sprite2/source/testsprite2.c @ 2698:e1da92da346c gsoc2008_nds

Clean up.
author Darren Alton <dalton@stevens.edu>
date Wed, 27 Aug 2008 04:23:38 +0000
parents c04a266c277a
children
line wrap: on
line diff
--- a/test/nds-test-progs/sprite2/source/testsprite2.c	Thu Aug 21 12:38:21 2008 +0000
+++ b/test/nds-test-progs/sprite2/source/testsprite2.c	Wed Aug 27 04:23:38 2008 +0000
@@ -81,9 +81,11 @@
     return (0);
 }
 
-int LoadSprite2(const u8* ptr, int size) {
+int
+LoadSprite2(const u8 * ptr, int size)
+{
     int i;
-    SDL_Rect r = {0,0,32,32};
+    SDL_Rect r = { 0, 0, 32, 32 };
     for (i = 0; i < state->num_windows; ++i) {
         SDL_SelectRenderer(state->windows[i]);
         sprites[i] = SDL_CreateTexture(SDL_PIXELFORMAT_ABGR1555,
@@ -92,7 +94,7 @@
             fprintf(stderr, "Couldn't create texture: %s\n", SDL_GetError());
             return -1;
         }
-        SDL_UpdateTexture(sprites[i], &r, ptr, r.w*2);
+        SDL_UpdateTexture(sprites[i], &r, ptr, r.w * 2);
         SDL_SetTextureBlendMode(sprites[i], blendMode);
         SDL_SetTextureScaleMode(sprites[i], scaleMode);
     }
@@ -170,7 +172,8 @@
     SDL_Event event;
     Uint32 then, now, frames;
 
-    consoleDemoInit(); puts("Hello world!  Initializing FAT...");
+    consoleDemoInit();
+    puts("Hello world!  Initializing FAT...");
     fatInitDefault();
 
     /* Initialize parameters */