From 32911e66025ea89c66180d501575cda4d8d4521e Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 20 Sep 2005 13:13:49 +0000 Subject: [PATCH] Optimise graphics copy object --- src/jalview/gui/SeqCanvas.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 657b9d9..1ed5e50 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -191,8 +191,12 @@ public class SeqCanvas extends JComponent 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; int er = av.endRes; -- 1.7.10.2