Author: mlytwyn
Date: Wed May  7 22:45:54 2014
New Revision: 37854

URL: http://svn.gna.org/viewcvs/gnustep?rev=37854&view=rev
Log:
Fix 'moldy' application icon image

Modified:
    libs/back/branches/gnustep_testplant_branch/Source/x11/XGServerWindow.m

Modified: 
libs/back/branches/gnustep_testplant_branch/Source/x11/XGServerWindow.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/back/branches/gnustep_testplant_branch/Source/x11/XGServerWindow.m?rev=37854&r1=37853&r2=37854&view=diff
==============================================================================
--- libs/back/branches/gnustep_testplant_branch/Source/x11/XGServerWindow.m     
(original)
+++ libs/back/branches/gnustep_testplant_branch/Source/x11/XGServerWindow.m     
Wed May  7 22:45:54 2014
@@ -149,7 +149,7 @@
                                        hasAlpha: [rep hasAlpha]
                                        isPlanar: NO
                                  colorSpaceName: NSCalibratedRGBColorSpace
-                                   bitmapFormat: 0
+                                   bitmapFormat: 
NSAlphaNonpremultipliedBitmapFormat
                                     bytesPerRow: 0
                                    bitsPerPixel: 0];
     }
@@ -1912,28 +1912,14 @@
          // blue
          B = d[2];
          // alpha
-#if 0
-/*
-  For unclear reasons the alpha handling does not work, so we simulate it.
-*/
          if (samples == 4)
            {
-             A = d[4];
+             A = d[3];
            }
          else
            {
              A = 255;
            }
-#else
-         if (R || G || B)
-           {
-             A = 255;
-           }
-         else
-           {
-             A = 0;
-           }
-#endif
 
           iconPropertyData[index++] = A << 24 | R << 16 | G << 8 | B;
          d += samples;


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to