|
From: Elias N. <eli...@us...> - 2005-11-21 10:55:59
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/linux In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15509 Modified Files: display.c Log Message: Linux: Removed superfluous check from display.c Index: display.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/display.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- display.c 21 Nov 2005 10:45:59 -0000 1.11 +++ display.c 21 Nov 2005 10:55:49 -0000 1.12 @@ -213,7 +213,6 @@ case NONE: // fall through default: - // Should never happen return NULL; } } @@ -257,8 +256,6 @@ } static bool setMode(JNIEnv *env, Display *disp, int screen, int width, int height, int freq, bool temporary) { - if (current_extension == NONE) - return false; int num_modes, i; mode_info *avail_modes = getDisplayModes(disp, screen, &num_modes); if (avail_modes == NULL) { @@ -282,7 +279,7 @@ continue; } break; - case NONE: // Should never happen + case NONE: // Should never happen, since NONE imply no available display modes default: // Should never happen continue; } |