JAL-2982 use configured background colour in PCA image export
[jalview.git] / src / jalview / gui / RotatableCanvas.java
index 86fe483..b00055b 100755 (executable)
@@ -287,7 +287,7 @@ public class RotatableCanvas extends JPanel implements MouseListener,
         ig = img.getGraphics();
       }
 
-      drawBackground(ig, bgColour);
+      drawBackground(ig);
       drawScene(ig);
 
       if (drawAxes)
@@ -336,14 +336,13 @@ public class RotatableCanvas extends JPanel implements MouseListener,
   }
 
   /**
-   * Fills the background with the specified colour
+   * Fills the background with the currently configured background colour
    * 
    * @param g
-   * @param col
    */
-  public void drawBackground(Graphics g, Color col)
+  public void drawBackground(Graphics g)
   {
-    g.setColor(col);
+    g.setColor(bgColour);
     g.fillRect(0, 0, prefSize.width, prefSize.height);
   }