From 80a1a1f98f80f52fbd536f5e83ebab4354e74d5e Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 20 Sep 2005 13:20:53 +0000 Subject: [PATCH] Optimise copy image --- src/jalview/appletgui/SeqCanvas.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; -- 1.7.10.2