File xv-3.10a-xwd.dif of Package xv

--- xvxwd.c
+++ xvxwd.c	2008-10-08 15:04:39.848282368 +0200
@@ -193,7 +193,7 @@ int LoadXWD(fname, pinfo)
     case 16:
     case 24:
     case 32:
-      ;
+      break;
     default:
       xwdError("True/Direct supports only 16, 24, and 32 bits");
       return 0;
@@ -204,21 +204,20 @@ int LoadXWD(fname, pinfo)
         for (col=0, xP=pic24+(row*cols*3); col<cols; col++) {
           register CARD32 ul = getpixnum(ifp);
 
-          *xP++ = ul >> red_shift   & red_mask  ;
-          *xP++ = ul >> green_shift & green_mask;
-          *xP++ = ul >> blue_shift  & blue_mask ;
-        };
+	  *xP++ = ul >> blue_shift  & blue_mask ;
+	  *xP++ = ul >> green_shift & green_mask;
+	  *xP++ = ul >> red_shift   & red_mask  ;
+        }
         for (col=0; col<padright; col++) getpixnum(ifp);
       }
     } else {
       for (row=0; row<rows; row++) {
         for (col=0, xP=pic24+(row*cols*3); col<cols; col++) {
           register CARD32 ul = getpixnum(ifp);
-
-          *xP++ = ul >> blue_shift  & blue_mask ;
-          *xP++ = ul >> green_shift & green_mask;
-          *xP++ = ul >> red_shift   & red_mask  ;
-        };
+	  *xP++ = ul >> red_shift   & red_mask  ;
+	  *xP++ = ul >> green_shift & green_mask;
+	  *xP++ = ul >> blue_shift  & blue_mask ;
+        }
         for (col=0; col<padright; col++) getpixnum(ifp);
       }
     }
openSUSE Build Service is sponsored by