fixed frame resizing glitches
parent
6664c0883d
commit
a1e408fb1e
|
|
@ -302,9 +302,8 @@ public class Engine extends Canvas implements KeyListener, MouseMotionListener,
|
||||||
* @param resizable
|
* @param resizable
|
||||||
*/
|
*/
|
||||||
private static void setWindowProperties(Dimension dimension, int fps, boolean resizable) {
|
private static void setWindowProperties(Dimension dimension, int fps, boolean resizable) {
|
||||||
|
frame.setResizable(resizable);
|
||||||
staticMain.setSize(dimension);
|
staticMain.setSize(dimension);
|
||||||
frame.setResizable(true);
|
|
||||||
frame.pack();
|
frame.pack();
|
||||||
frame.setLocationRelativeTo(null);
|
frame.setLocationRelativeTo(null);
|
||||||
WIDTH = dimension.width;
|
WIDTH = dimension.width;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue