render Method added

This commit is contained in:
ngb
2022-11-28 09:10:31 +01:00
parent 135af10729
commit 6321a7d421

View File

@@ -427,9 +427,18 @@ public class Zeichenmaschine extends Constants {
* im Zeichenfenster an.
*/
public final void redraw() {
if( state == Options.AppState.PAUSED ) {
if( state == Options.AppState.PAUSED
|| state == Options.AppState.TERMINATED ) {
draw();
}
render();
}
/**
* Zeigt den aktuellen Inhalt der {@link Zeichenleinwand}
* im Zeichenfenster an, ohne vorher {@link #draw()} aufzurufen.
*/
public final void render() {
canvas.render();
// canvas.invalidate();
// frame.repaint();