Merge branch 'main' into games
This commit is contained in:
commit
e2c10ff940
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue