harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r532356 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/blitter.cpp
Date Wed, 25 Apr 2007 13:58:15 GMT
Author: apetrenko
Date: Wed Apr 25 06:58:14 2007
New Revision: 532356

URL: http://svn.apache.org/viewvc?view=rev&rev=532356
Log:
Patch for HARMONY-3677 "[classlib][awt] Results of running checker tool"

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/blitter.cpp

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/blitter.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/blitter.cpp?view=diff&rev=532356&r1=532355&r2=532356
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/blitter.cpp (original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/blitter.cpp Wed
Apr 25 06:58:14 2007
@@ -973,7 +973,7 @@
   unsigned char r, unsigned char g, unsigned char b, unsigned char a){
 
       int type = surfStruct->ss_type;
-      unsigned char *p, pixel;
+      unsigned char *p, pixel = 0;
       unsigned short *sp;
       int rc, gc, bc, ac, rgb, pixelBits, bitnum, shift, bitMask, elem, gray, mask,
           error, minError, alphaError, minAlphaError, buf;
@@ -1173,7 +1173,6 @@
               } else  {
                   minAlphaError = 255;
                   minError = 195075; // 255^2 + 255^2 + 255^2
-                  alphaError;
                   error = 0;
 
                   for (int i = 0; i < surfStruct->colormap_size; i++) {



Mime
View raw message