isDirty support
This commit is contained in:
parent
75572ebcf6
commit
9125d03f62
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2002 Lightweight Java Game Library Project
|
* Copyright (c) 2002-2004 Lightweight Java Game Library Project
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -205,6 +205,10 @@ public class MouseTest {
|
||||||
|
|
||||||
// pause and continue if minimized
|
// pause and continue if minimized
|
||||||
if(Window.isMinimized()) {
|
if(Window.isMinimized()) {
|
||||||
|
if(Window.isDirty()) {
|
||||||
|
render();
|
||||||
|
Window.paint();
|
||||||
|
}
|
||||||
pause(100);
|
pause(100);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue