From: amwaterhouse Date: Tue, 20 Sep 2005 13:20:53 +0000 (+0000) Subject: Optimise copy image X-Git-Tag: Release_2_06~35 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=80a1a1f98f80f52fbd536f5e83ebab4354e74d5e;p=jalview.git Optimise copy image --- diff --git a/src/jalview/appletgui/SeqCanvas.java b/src/jalview/appletgui/SeqCanvas.java index fd83309..853a327 100755 --- a/src/jalview/appletgui/SeqCanvas.java +++ b/src/jalview/appletgui/SeqCanvas.java @@ -140,8 +140,12 @@ public class SeqCanvas return; } - gg.copyArea(0, 0, imgWidth, imgHeight, -horizontal * av.charWidth, - -vertical * av.charHeight); + gg.copyArea(horizontal * av.charWidth, + vertical * av.charHeight, + imgWidth, + imgHeight, + -horizontal * av.charWidth, + -vertical * av.charHeight); int sr = av.startRes, er = av.endRes, ss = av.startSeq, es = av.endSeq, transX = 0, transY = 0;