Fixed Speaker image when sound selected not in the center

This commit is contained in:
Jindra Petřík
2022-12-21 14:12:02 +01:00
parent 3dc81b9710
commit 03df93d785
2 changed files with 6 additions and 1 deletions

View File

@@ -610,6 +610,10 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
if (img != null) {
int x = 0;
int y = 0;
if (timelined == null) {
x = (int) offsetPoint.getX();
y = (int) offsetPoint.getY();
}
g2.drawImage(img.getBufferedImage(), x, y, x + img.getWidth(), y + img.getHeight(), 0, 0, img.getWidth(), img.getHeight(), null);
@@ -1437,7 +1441,7 @@ public final class ImagePanel extends JPanel implements MediaDisplay {
}
private void setAllowMove(boolean allowMove) {
this.allowMove = allowMove;
this.allowMove = allowMove;
}
private void calcRect() {