caching images and other smallfixes

This commit is contained in:
honfika@gmail.com
2014-11-18 00:11:43 +01:00
parent 917c56e549
commit 742d58b3ba
7 changed files with 210 additions and 283 deletions

View File

@@ -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() {