Skip to content

Commit f631e17

Browse files
Merge pull request #43 from hjm1fb/master
Amend the wrong data index of rgbTopRight point
2 parents 7b2cad6 + 054cfbb commit f631e17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JniBitmapOperationsLibrary/jni/JniBitmapOperationsLibrary.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ JNIEXPORT void JNICALL Java_com_jni_bitmap_1operations_JniBitmapHolder_jniScaleB
422422
&rgbTopLeft);
423423
//rgbTopRight=startingImageData[xTopLeft+1][yTopLeft];
424424
convertIntToArgb(
425-
previousData[((yTopLeft + 1) * oldWidth) + xTopLeft],
425+
previousData[(yTopLeft* oldWidth) + xTopLeft + 1],
426426
&rgbTopRight);
427427
rgbTopMiddle.alpha = rgbTopLeft.alpha * xcRatio2
428428
+ rgbTopRight.alpha * xcratio1;

0 commit comments

Comments
 (0)