mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Removed repaint override in CardPanel.
Ccaused awt deadlocks.
This commit is contained in:
parent
f3316853a2
commit
e63bec1977
1 changed files with 2 additions and 2 deletions
|
@ -481,14 +481,14 @@ public class CardPanel extends MagePermanent implements MouseListener, MouseMoti
|
||||||
setBounds(x + xOffset, y + yOffset, width, height);
|
setBounds(x + xOffset, y + yOffset, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/*@Override
|
||||||
public void repaint() {
|
public void repaint() {
|
||||||
Rectangle b = getBounds();
|
Rectangle b = getBounds();
|
||||||
JRootPane rootPane = SwingUtilities.getRootPane(this);
|
JRootPane rootPane = SwingUtilities.getRootPane(this);
|
||||||
if (rootPane == null) return;
|
if (rootPane == null) return;
|
||||||
Point p = SwingUtilities.convertPoint(getParent(), b.x, b.y, rootPane);
|
Point p = SwingUtilities.convertPoint(getParent(), b.x, b.y, rootPane);
|
||||||
rootPane.repaint(p.x, p.y, b.width, b.height);
|
rootPane.repaint(p.x, p.y, b.width, b.height);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
public int getCardX() {
|
public int getCardX() {
|
||||||
return getX() + cardXOffset;
|
return getX() + cardXOffset;
|
||||||
|
|
Loading…
Reference in a new issue