mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-18 12:54:10 +00:00
remove white flash when switch to/from fullscreen
This commit is contained in:
parent
6eccb8b971
commit
ef62a8371b
1 changed files with 7 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue