v0.8.0: resizing behaviour is now ignored if the app is set to 0x0 (e.g. when window is minimized)

This commit is contained in:
Evan Debenham 2019-11-26 14:13:50 -05:00
parent 591d6bc214
commit 86554f0e1e
2 changed files with 8 additions and 1 deletions

View File

@ -108,6 +108,10 @@ public class Game implements ApplicationListener {
@Override
public void resize(int width, int height) {
if (width == 0 || height == 0){
return;
}
Blending.useDefault();
TextureCache.reload();
Vertexbuffer.refreshAllBuffers();

View File

@ -223,7 +223,10 @@ public class ShatteredPixelDungeon extends Game {
@Override
public void resize( int width, int height ) {
if (width == 0 || height == 0){
return;
}
if (scene instanceof PixelScene &&
(height != Game.height || width != Game.width)) {
((PixelScene) scene).saveWindows();