remove white flash when switch to/from fullscreen

This commit is contained in:
kappaOne 2012-11-25 20:34:45 +00:00
parent 6eccb8b971
commit ef62a8371b
1 changed files with 7 additions and 0 deletions

View File

@ -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) {