fixed frame resizing glitches

master
Marcus Gosselin 2014-10-10 23:37:32 -04:00
parent 6664c0883d
commit a1e408fb1e
1 changed files with 1 additions and 2 deletions

View File

@ -302,9 +302,8 @@ public class Engine extends Canvas implements KeyListener, MouseMotionListener,
* @param resizable
*/
private static void setWindowProperties(Dimension dimension, int fps, boolean resizable) {
frame.setResizable(resizable);
staticMain.setSize(dimension);
frame.setResizable(true);
frame.pack();
frame.setLocationRelativeTo(null);
WIDTH = dimension.width;