mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-09 07:34:05 +00:00
caching images and other smallfixes
This commit is contained in:
@@ -214,7 +214,8 @@ public final class ImagePanel extends JPanel implements ActionListener, MediaDis
|
||||
if (e == null) {
|
||||
return;
|
||||
}
|
||||
synchronized (iconPanel) {
|
||||
boolean draw2 = false;
|
||||
synchronized (ImagePanel.class) {
|
||||
lastMouseEvent = e;
|
||||
boolean handCursor = false;
|
||||
DepthState newStateUnderCursor = null;
|
||||
@@ -272,12 +273,13 @@ public final class ImagePanel extends JPanel implements ActionListener, MediaDis
|
||||
}
|
||||
if (newStateUnderCursor != stateUnderCursor) {
|
||||
stateUnderCursor = newStateUnderCursor;
|
||||
if (draw) {
|
||||
drawFrame();
|
||||
}
|
||||
draw2 = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (draw2) {
|
||||
drawFrame();
|
||||
}
|
||||
}
|
||||
|
||||
private void showSelectedName() {
|
||||
|
||||
Reference in New Issue
Block a user