Skip to content

Commit

Permalink
Add webcam panel super component paint, refs #234
Browse files Browse the repository at this point in the history
  • Loading branch information
sarxos committed Jul 17, 2014
1 parent b463bd6 commit 3c6b66e
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -768,11 +768,13 @@ public Painter getPainter() {

@Override
protected void paintComponent(Graphics g) {
Graphics2D g2 = (Graphics2D) g;

super.paintComponent(g);

if (image == null) {
painter.paintPanel(this, g2);
painter.paintPanel(this, (Graphics2D) g);
} else {
painter.paintImage(this, image, g2);
painter.paintImage(this, image, (Graphics2D) g);
}
}

Expand Down

0 comments on commit 3c6b66e

Please sign in to comment.