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:
parent
591d6bc214
commit
86554f0e1e
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user