]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xpm/scan.c
fixed typo : _ instead of wxT
[wxWidgets.git] / src / xpm / scan.c
index 8ff2e47c952c8976fdb6793381778c1ebd9e1d6a..c4ee7232804118aa843dcbe7206259170aed6790 100644 (file)
@@ -261,7 +261,7 @@ XpmCreateXpmImageFromImage(display, image, shapeimage,
     /*
      * scan shape mask if any
      */
-    if (shapeimage) 
+    if (shapeimage)
     {
 #ifndef FOR_MSW
 # ifndef AMIGA
@@ -293,7 +293,7 @@ XpmCreateXpmImageFromImage(display, image, shapeimage,
      *
      */
 
-    if (image) 
+    if (image)
     {
 #ifndef FOR_MSW
 # ifndef AMIGA
@@ -301,7 +301,7 @@ XpmCreateXpmImageFromImage(display, image, shapeimage,
                (image->byte_order == image->bitmap_bit_order))
            ErrorStatus = GetImagePixels1(image, width, height, &pmap,
                                          storePixel);
-           else if (image->format == ZPixmap) 
+           else if (image->format == ZPixmap)
        {
                if (image->bits_per_pixel == 8)
                    ErrorStatus = GetImagePixels8(image, width, height, &pmap);
@@ -309,20 +309,18 @@ XpmCreateXpmImageFromImage(display, image, shapeimage,
                        ErrorStatus = GetImagePixels16(image, width, height, &pmap);
            else if (image->bits_per_pixel == 32)
                        ErrorStatus = GetImagePixels32(image, width, height, &pmap);
-       } 
+       }
            else
                ErrorStatus = GetImagePixels(image, width, height, &pmap);
 # else
            ErrorStatus = AGetImagePixels(image, width, height, &pmap,
                                      storePixel);
 # endif /* AMIGA */
-
 #else
 
-#ifndef __OS2__
+#ifndef __VISAGECPP30__
            ErrorStatus = MSWGetImagePixels(display, image, width, height, &pmap,
                                        storePixel);
-/* calling convention all messed up OS/2 -- figure out later */
 #endif
 
 #endif
@@ -991,9 +989,18 @@ AGetImagePixels (
 #else  /* ndef FOR_MSW */
 
 #ifdef __OS2__
-/* Visual Age cannot deal with old, non-ansi, code */
-static int
-MSWGetImagePixels(
+
+#ifdef __VISAGECPP30__
+static int MSWGetImagePixels(
+  Display*     display
+, XImage*      image
+, unsigned int width
+, unsigned int height
+, PixelsMap*   pmap
+, int          (*storeFunc) (Pixel, PixelsMap*, unsigned int*)
+)
+#else
+static int MSWGetImagePixels(
   Display*     display
 , XImage*      image
 , unsigned int width
@@ -1001,6 +1008,8 @@ MSWGetImagePixels(
 , PixelsMap*   pmap
 , int          (*storeFunc) ()
 )
+#endif
+
 #else
 static int
 MSWGetImagePixels(display, image, width, height, pmap, storeFunc)
@@ -1042,11 +1051,8 @@ MSWGetImagePixels(display, image, width, height, pmap, storeFunc)
            pixel = GetPixel(*display, x, y);
 #endif
 
-#ifndef __OS2__
-/* calling convention all messed up under OS/2 */
            if ((*storeFunc) (pixel, pmap, iptr))
                return (XpmNoMemory);
-#endif
        }
     }
     return (XpmSuccess);