test/testpalette.c
branchgsoc2008_nds
changeset 2669 e27bdcc80744
parent 1895 c121d94672cb
child 2851 6c3fbeb04eca
equal deleted inserted replaced
2668:bb3241de289e 2669:e27bdcc80744
   336         SDL_SetPalette(screen, SDL_PHYSPAL, cmap, 0, boatcols + 64);
   336         SDL_SetPalette(screen, SDL_PHYSPAL, cmap, 0, boatcols + 64);
   337 
   337 
   338         /* update changed areas of the screen */
   338         /* update changed areas of the screen */
   339         SDL_UpdateRects(screen, NBOATS, updates);
   339         SDL_UpdateRects(screen, NBOATS, updates);
   340         frames++;
   340         frames++;
   341     }
   341     } while (fade_level > 0);
   342     while (fade_level > 0);
       
   343 
   342 
   344     printf("%d frames, %.2f fps\n",
   343     printf("%d frames, %.2f fps\n",
   345            frames, 1000.0 * frames / (SDL_GetTicks() - start));
   344            frames, 1000.0 * frames / (SDL_GetTicks() - start));
   346 
   345 
   347     if (vidflags & SDL_FULLSCREEN)
   346     if (vidflags & SDL_FULLSCREEN)