You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by ap...@apache.org on 2007/04/25 17:30:27 UTC
svn commit: r532389 -
/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/pngdecoder.c
Author: apetrenko
Date: Wed Apr 25 08:30:26 2007
New Revision: 532389
URL: http://svn.apache.org/viewvc?view=rev&rev=532389
Log:
Patch for HARMONY-3677 "[classlib][awt] Results of running checker tool"
Modified:
harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/pngdecoder.c
Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/pngdecoder.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/pngdecoder.c?view=diff&rev=532389&r1=532388&r2=532389
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/pngdecoder.c (original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/pngdecoder.c Wed Apr 25 08:30:26 2007
@@ -69,10 +69,6 @@
decoderInfo->env = env;
decoderInfo->obj = obj;
- // Obtain input data
- decoderInfo->jInputData = jInput;
- decoderInfo->inputBuffer = (*env)->GetPrimitiveArrayCritical(env, jInput, 0);
-
// Get java array for image data if it is created (header is passed already)
if(decoderInfo->colorType >= 0) {
if(decoderInfo->colorType == PNG_COLOR_TYPE_RGB ||
@@ -83,6 +79,10 @@
}
decoderInfo->imageData = (*env)->GetPrimitiveArrayCritical(env, decoderInfo->jImageData, 0);
}
+
+ // Obtain input data
+ decoderInfo->jInputData = jInput;
+ decoderInfo->inputBuffer = (*env)->GetPrimitiveArrayCritical(env, jInput, 0);
// Now process data
processData(decoderInfo, decoderInfo->inputBuffer, bytesInBuffer);