Optimise graphics copy object
authoramwaterhouse <Andrew Waterhouse>
Tue, 20 Sep 2005 13:13:49 +0000 (13:13 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 20 Sep 2005 13:13:49 +0000 (13:13 +0000)
src/jalview/gui/SeqCanvas.java

index 657b9d9..1ed5e50 100755 (executable)
@@ -191,8 +191,12 @@ public class SeqCanvas extends JComponent
             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;\r
         int er = av.endRes;\r