Fixed a small glitch in the test conversion

This commit is contained in:
Elias Naur 2004-04-04 13:18:16 +00:00
parent ddabfaa81a
commit ee05436c65
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ public class PbufferTest {
*/
private void mainLoop() {
while (!Keyboard.isKeyDown(Keyboard.KEY_ESCAPE) && !Window.isCloseRequested()) {
if (!Window.isVisible()) {
if (Window.isVisible()) {
// check keyboard input
processKeyboard();
// do "game" logic, and render it