More linux debug

This commit is contained in:
Elias Naur 2004-12-12 19:02:43 +00:00
parent 1263176471
commit 8419537ef7
1 changed files with 5 additions and 2 deletions

View File

@ -726,10 +726,13 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_LinuxDisplay_destroyContext(JNIEnv
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_LinuxDisplay_createWindow(JNIEnv *env, jobject this, jobject mode, jboolean fullscreen, int x, int y) {
bool current_fullscreen = fullscreen == JNI_TRUE;
if (current_fullscreen) {
if (getCurrentDisplayModeExtension() == XRANDR && isNetWMFullscreenSupported(env))
if (getCurrentDisplayModeExtension() == XRANDR && isNetWMFullscreenSupported(env)) {
printfDebugJava(env, "Using NetWM for fullscreen window");
current_window_mode = FULLSCREEN_NETWM;
else
} else {
printfDebugJava(env, "Using legacy mode for fullscreen window");
current_window_mode = FULLSCREEN_LEGACY;
}
} else
current_window_mode = WINDOWED;
jclass cls_displayMode = (*env)->GetObjectClass(env, mode);