remove white flash when switch to/from fullscreen
This commit is contained in:
parent
6eccb8b971
commit
ef62a8371b
|
@ -361,6 +361,13 @@ static NSAutoreleasePool *pool;
|
|||
_parent->resized = JNI_TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
- (void) drawRect:(NSRect)backgroundColor {
|
||||
// set black as the default background color
|
||||
// for the nsview to avoid white flash on fullscreen
|
||||
[[NSColor blackColor] setFill];
|
||||
NSRectFill(backgroundColor);
|
||||
}
|
||||
@end
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_MacOSXDisplay_nIsMiniaturized(JNIEnv *env, jobject this, jobject window_handle) {
|
||||
|
|
Loading…
Reference in New Issue