diff test/automated/common/common.c @ 3482:78db4f7ae2f3

More fixes to compile under Visual C++
author Sam Lantinga <slouken@libsdl.org>
date Sun, 22 Nov 2009 07:00:26 +0000
parents c32c53fca10d
children 5f038ec1a1af
line wrap: on
line diff
--- a/test/automated/common/common.c	Sun Nov 22 06:42:58 2009 +0000
+++ b/test/automated/common/common.c	Sun Nov 22 07:00:26 2009 +0000
@@ -42,7 +42,7 @@
             case 2:
             case 3:
                ret += 1;
-               printf("%d BPP not supported yet.\n",bpp);
+               /*printf("%d BPP not supported yet.\n",bpp);*/
                break;
 
             case 4:
@@ -86,9 +86,9 @@
       if (bpp == 4) {
          for (j=0; j<sur->h; j++) {
             for (i=0; i<sur->w; i++) {
+               Uint8 R, G, B, A;
                p  = (Uint8 *)sur->pixels + j * sur->pitch + i * bpp;
                pd = (Uint8 *)img->pixel_data + (j*img->width + i) * img->bytes_per_pixel;
-               Uint8 R, G, B, A;
 
                R = pd[0];
                G = pd[1];