LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File xv-3.10a-xwd.dif of Package xv.4872 (Project DISCONTINUED:openSUSE:11.3:Update)

--- 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);
       }
     }