Optimise copy image
authoramwaterhouse <Andrew Waterhouse>
Tue, 20 Sep 2005 13:20:53 +0000 (13:20 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 20 Sep 2005 13:20:53 +0000 (13:20 +0000)
src/jalview/appletgui/SeqCanvas.java

index fd83309..853a327 100755 (executable)
@@ -140,8 +140,12 @@ public class SeqCanvas
       return;\r
     }\r
 \r
-    gg.copyArea(0, 0, imgWidth, imgHeight, -horizontal * av.charWidth,\r
-                -vertical * av.charHeight);\r
+    gg.copyArea(horizontal * av.charWidth,\r
+                vertical * av.charHeight,\r
+                imgWidth,\r
+                imgHeight,\r
+                -horizontal * av.charWidth,\r
+                    -vertical * av.charHeight);\r
 \r
     int sr = av.startRes, er = av.endRes, ss = av.startSeq, es = av.endSeq,\r
         transX = 0, transY = 0;\r