jdk/src/share/classes/sun/java2d/loops/Blit.java
changeset 10042 987fd92d0413
parent 5506 202f599c92aa
child 23010 6dadb192ad81
equal deleted inserted replaced
10041:ee3a292c317f 10042:987fd92d0413
   170             srcx -= dstx;
   170             srcx -= dstx;
   171             srcy -= dsty;
   171             srcy -= dsty;
   172             while (si.nextSpan(span)) {
   172             while (si.nextSpan(span)) {
   173                 int w = span[2] - span[0];
   173                 int w = span[2] - span[0];
   174                 int h = span[3] - span[1];
   174                 int h = span[3] - span[1];
   175                 srcRas = srcRas.createChild(srcx + span[0], srcy + span[1],
   175                 Raster tmpSrcRas = srcRas.createChild(srcx + span[0], srcy + span[1],
   176                                             w, h, 0, 0, null);
   176                                                       w, h, 0, 0, null);
   177                 dstRas = dstRas.createWritableChild(span[0], span[1],
   177                 WritableRaster tmpDstRas = dstRas.createWritableChild(span[0], span[1],
   178                                                     w, h, 0, 0, null);
   178                                                                       w, h, 0, 0, null);
   179                 ctx.compose(srcRas, dstRas, dstRas);
   179                 ctx.compose(tmpSrcRas, tmpDstRas, tmpDstRas);
   180             }
   180             }
   181             ctx.dispose();
   181             ctx.dispose();
   182         }
   182         }
   183     }
   183     }
   184 
   184