We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b463bd6 commit 3c6b66eCopy full SHA for 3c6b66e
webcam-capture/src/main/java/com/github/sarxos/webcam/WebcamPanel.java
@@ -768,11 +768,13 @@ public Painter getPainter() {
768
769
@Override
770
protected void paintComponent(Graphics g) {
771
- Graphics2D g2 = (Graphics2D) g;
+
772
+ super.paintComponent(g);
773
774
if (image == null) {
- painter.paintPanel(this, g2);
775
+ painter.paintPanel(this, (Graphics2D) g);
776
} else {
- painter.paintImage(this, image, g2);
777
+ painter.paintImage(this, image, (Graphics2D) g);
778
}
779
780
0 commit comments