8025940: Windows build fails after the fix for 8025280
authorjchen
Fri, 04 Oct 2013 16:17:59 -0700
changeset 20426 5f815efd9b85
parent 20425 5964c0fc5cc0
child 20427 f86a5b10b7fd
child 21218 42223d597a64
8025940: Windows build fails after the fix for 8025280 Reviewed-by: prr, jgodinez
jdk/src/share/native/sun/java2d/loops/MaskBlit.c
--- a/jdk/src/share/native/sun/java2d/loops/MaskBlit.c	Thu Oct 03 13:49:52 2013 -0700
+++ b/jdk/src/share/native/sun/java2d/loops/MaskBlit.c	Fri Oct 04 16:17:59 2013 -0700
@@ -99,6 +99,8 @@
                 (maskArray
                  ? (*env)->GetPrimitiveArrayCritical(env, maskArray, 0)
                  : 0);
+            jint savesx = srcInfo.bounds.x1;
+            jint savedx = dstInfo.bounds.x1;
             if (maskArray != NULL && pMask == NULL) {
                 SurfaceData_InvokeRelease(env, dstOps, &dstInfo);
                 SurfaceData_InvokeRelease(env, srcOps, &srcInfo);
@@ -106,8 +108,6 @@
                 SurfaceData_InvokeUnlock(env, srcOps, &srcInfo);
                 return;
             }
-            jint savesx = srcInfo.bounds.x1;
-            jint savedx = dstInfo.bounds.x1;
             Region_StartIteration(env, &clipInfo);
             while (Region_NextIteration(&clipInfo, &span)) {
                 void *pSrc = PtrCoord(srcInfo.rasBase,