fix UI revalidation trigger location

This commit is contained in:
yugecin 2017-02-02 01:13:25 +01:00
parent 62b5d574da
commit aff2ce9eee

View File

@ -146,6 +146,7 @@ public class DisplayContainer implements ErrorDumpable, KeyListener, MouseListen
@Override
public void onEvent(ResolutionOrSkinChangedEvent event) {
destroyImages();
UI.revalidate(); // TODO this shouldn't be here
}
});
@ -350,7 +351,6 @@ public class DisplayContainer implements ErrorDumpable, KeyListener, MouseListen
Fonts.init();
eventBus.post(new ResolutionOrSkinChangedEvent());
UI.revalidate(); // TODO this shouldn't be here
}
public void resetCursor() {