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
|
@Override
|
||||||
public void resize(int width, int height) {
|
public void resize(int width, int height) {
|
||||||
|
if (width == 0 || height == 0){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Blending.useDefault();
|
Blending.useDefault();
|
||||||
TextureCache.reload();
|
TextureCache.reload();
|
||||||
Vertexbuffer.refreshAllBuffers();
|
Vertexbuffer.refreshAllBuffers();
|
||||||
|
|
|
@ -223,6 +223,9 @@ public class ShatteredPixelDungeon extends Game {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void resize( int width, int height ) {
|
public void resize( int width, int height ) {
|
||||||
|
if (width == 0 || height == 0){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (scene instanceof PixelScene &&
|
if (scene instanceof PixelScene &&
|
||||||
(height != Game.height || width != Game.width)) {
|
(height != Game.height || width != Game.width)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user