Merge branch 'main' into games

This commit is contained in:
ngb 2022-06-20 18:31:44 +02:00
commit e2c10ff940
1 changed files with 16 additions and 0 deletions

View File

@ -359,6 +359,7 @@ public class Zeichenmaschine extends Constants implements MouseInputListener, Ke
canvas.addKeyListener(fullscreenExitListener);
fullscreen = true;
fullscreenChanged();
} else if( !pEnable && fullscreen ) {
fullscreen = false;
@ -366,10 +367,16 @@ public class Zeichenmaschine extends Constants implements MouseInputListener, Ke
displayDevice.setFullScreenWindow(null);
setSize(initialWidth, initialHeight);
// frame.setUndecorated(false);
fullscreenChanged();
}
}
}
public boolean isFullscreen() {
Window win = displayDevice.getFullScreenWindow();
return fullscreen && win != null;
}
/**
* Gibt den aktuellen {@link Options.AppState Zustand} der Zeichenmaschine zurück.
*
@ -1083,6 +1090,15 @@ public class Zeichenmaschine extends Constants implements MouseInputListener, Ke
keyCode = event.getKeyCode();
}
// Window changes
public void fullscreenChanged() {
// Intentionally left blank
}
////
// Zeichenthread
////
class Zeichenthread extends Thread {
@Override