You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(134) |
Sep
(52) |
Oct
(13) |
Nov
(342) |
Dec
(163) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(44) |
Feb
(62) |
Mar
(158) |
Apr
(38) |
May
(70) |
Jun
(58) |
Jul
(104) |
Aug
(207) |
Sep
(83) |
Oct
(122) |
Nov
(23) |
Dec
(49) |
| 2004 |
Jan
(119) |
Feb
(132) |
Mar
(192) |
Apr
(140) |
May
(77) |
Jun
(74) |
Jul
(201) |
Aug
(63) |
Sep
(102) |
Oct
(70) |
Nov
(173) |
Dec
(78) |
| 2005 |
Jan
(174) |
Feb
(197) |
Mar
(105) |
Apr
(59) |
May
(77) |
Jun
(43) |
Jul
(21) |
Aug
(18) |
Sep
(47) |
Oct
(37) |
Nov
(74) |
Dec
(50) |
| 2006 |
Jan
(44) |
Feb
(19) |
Mar
(32) |
Apr
(24) |
May
(31) |
Jun
(55) |
Jul
(138) |
Aug
(28) |
Sep
(12) |
Oct
(41) |
Nov
(58) |
Dec
(24) |
| 2007 |
Jan
(28) |
Feb
(14) |
Mar
(10) |
Apr
(68) |
May
(30) |
Jun
(26) |
Jul
(18) |
Aug
(63) |
Sep
(19) |
Oct
(29) |
Nov
(20) |
Dec
(10) |
| 2008 |
Jan
(38) |
Feb
(7) |
Mar
(37) |
Apr
(120) |
May
(41) |
Jun
(36) |
Jul
(39) |
Aug
(24) |
Sep
(28) |
Oct
(30) |
Nov
(36) |
Dec
(75) |
| 2009 |
Jan
(46) |
Feb
(22) |
Mar
(50) |
Apr
(70) |
May
(134) |
Jun
(105) |
Jul
(75) |
Aug
(34) |
Sep
(38) |
Oct
(34) |
Nov
(19) |
Dec
(20) |
| 2010 |
Jan
(11) |
Feb
(20) |
Mar
(65) |
Apr
(83) |
May
(104) |
Jun
(73) |
Jul
(78) |
Aug
(57) |
Sep
(43) |
Oct
(35) |
Nov
(9) |
Dec
(4) |
| 2011 |
Jan
(21) |
Feb
(11) |
Mar
(18) |
Apr
(10) |
May
(18) |
Jun
(15) |
Jul
(48) |
Aug
(25) |
Sep
(17) |
Oct
(45) |
Nov
(15) |
Dec
(12) |
| 2012 |
Jan
(21) |
Feb
(9) |
Mar
(12) |
Apr
(9) |
May
(9) |
Jun
(5) |
Jul
(1) |
Aug
(10) |
Sep
(12) |
Oct
(1) |
Nov
(28) |
Dec
(5) |
| 2013 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2016 |
Jan
(2) |
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
|
|
1
|
|
2
(1) |
3
|
4
|
5
|
6
(7) |
7
(5) |
8
(14) |
|
9
(10) |
10
(6) |
11
|
12
(7) |
13
(1) |
14
(1) |
15
|
|
16
|
17
(2) |
18
|
19
|
20
(5) |
21
|
22
|
|
23
|
24
(1) |
25
|
26
(2) |
27
|
28
|
|
|
From: Elias N. <eli...@us...> - 2003-02-12 17:12:07
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/linux In directory sc8-pr-cvs1:/tmp/cvs-serv13251/linux Modified Files: org_lwjgl_Display.cpp org_lwjgl_input_Keyboard.cpp org_lwjgl_input_Mouse.cpp Log Message: Added preliminary alt-tab support on linux Index: org_lwjgl_Display.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/linux/org_lwjgl_Display.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/org_lwjgl_Display.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- org_lwjgl_Display.cpp 9 Feb 2003 17:01:01 -0000 1.17 +++ org_lwjgl_Display.cpp 12 Feb 2003 17:12:01 -0000 1.18 @@ -57,8 +57,8 @@ static jfieldID fid_close; static bool current_fullscreen; -static bool current_focused; static bool current_minimized; +static bool input_released; static int win_width; static int win_height; static XF86VidModeModeInfo **avail_modes; @@ -72,6 +72,10 @@ extern void handleButtonPress(XButtonEvent *); extern void handleButtonRelease(XButtonEvent *); extern void handleKeyEvent(XKeyEvent *); +extern void releaseKeyboard(void); +extern void releasePointer(void); +extern void acquireKeyboard(void); +extern void acquirePointer(void); struct pixelformat { int bpp; @@ -199,6 +203,15 @@ } while ((event.type != MapNotify) || (event.xmap.event != win)); } +bool releaseInput(void) { + if (current_fullscreen) + return false; + releaseKeyboard(); + releasePointer(); + input_released = true; + return true; +} + void handleMessages(void) { XEvent event; while (XPending(disp) > 0) { @@ -208,11 +221,11 @@ if ((event.xclient.format == 32) && (event.xclient.data.l[0] == delete_atom)) saved_env->SetStaticBooleanField(saved_clazz, fid_close, JNI_TRUE); break; - case EnterNotify: - current_focused = true; - break; - case LeaveNotify: - current_focused = false; + case FocusIn: + if (input_released) { + acquireKeyboard(); + acquirePointer(); + } break; case MapNotify: current_minimized = false; @@ -272,15 +285,6 @@ return 1; } -bool isFullscreen(void) { - return current_fullscreen; -} - -bool isFocused() { - handleMessages(); - return current_focused; -} - bool isMinimized() { handleMessages(); return current_minimized; @@ -325,7 +329,7 @@ else current_fullscreen = false; current_minimized = false; - current_focused = false; + input_released = false; disp = XOpenDisplay(NULL); if (disp == NULL) { #ifdef _DEBUG @@ -359,7 +363,7 @@ cmap = XCreateColormap(disp, root_win, vis_info->visual, AllocNone); attribs.colormap = cmap; - attribs.event_mask = VisibilityChangeMask| StructureNotifyMask | EnterWindowMask | LeaveWindowMask | KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask; + attribs.event_mask = FocusChangeMask | VisibilityChangeMask| StructureNotifyMask | KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask; attribs.background_pixel = 0xFF000000; attribmask = CWColormap | CWBackPixel | CWEventMask; if (fullscreen) { @@ -407,7 +411,6 @@ } XClearWindow(disp, win); XSync(disp, True); - isFocused(); return JNI_TRUE; } Index: org_lwjgl_input_Keyboard.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/linux/org_lwjgl_input_Keyboard.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/org_lwjgl_input_Keyboard.cpp,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- org_lwjgl_input_Keyboard.cpp 9 Feb 2003 17:01:01 -0000 1.13 +++ org_lwjgl_input_Keyboard.cpp 12 Feb 2003 17:12:01 -0000 1.14 @@ -62,13 +62,12 @@ static bool keyboard_grabbed; static bool buffer_enabled; static bool translation_enabled; +static bool created = false; extern Display *disp; extern Window win; -extern bool isFullscreen(void); - -extern bool isFocused(void); +extern bool releaseInput(void); extern void handleMessages(void); /* @@ -101,20 +100,16 @@ XUngrabKeyboard(disp, CurrentTime); } -int updateKeyboardGrab() { - if (isFullscreen()) { - if (!keyboard_grabbed) - return grabKeyboard(); - } else { - if (isFocused()) { - if (!keyboard_grabbed) - return grabKeyboard(); - } else { - if (keyboard_grabbed) - ungrabKeyboard(); - } - } - return GrabSuccess; +void acquireKeyboard(void) { + if (!created) + return; + grabKeyboard(); +} + +void releaseKeyboard(void) { + if (!created) + return; + ungrabKeyboard(); } /* @@ -129,7 +124,7 @@ translation_enabled = false; buffer_enabled = false; - if (updateKeyboardGrab() != GrabSuccess) { + if (grabKeyboard() != GrabSuccess) { #ifdef _DEBUG printf("Could not grab keyboard\n"); #endif @@ -157,6 +152,7 @@ key_map[0x68] = 0xb5; // Numpad divide memset(key_buf, 0, KEYBOARD_SIZE*sizeof(unsigned char)); + created = true; return JNI_TRUE; } @@ -170,6 +166,7 @@ { if (keyboard_grabbed) ungrabKeyboard(); + created = false; } XKeyEvent *nextEventElement(void) { @@ -238,6 +235,17 @@ unsigned char keycode = getKeycode(event); unsigned char state = eventState(event); key_buf[keycode] = state; + if (key_buf[org_lwjgl_input_Keyboard_KEY_LMENU] == 1 || + key_buf[org_lwjgl_input_Keyboard_KEY_RMENU] == 1) { + if (key_buf[org_lwjgl_input_Keyboard_KEY_TAB] == 1) { + if (releaseInput()) { + key_buf[org_lwjgl_input_Keyboard_KEY_RMENU] = 0; + key_buf[org_lwjgl_input_Keyboard_KEY_LMENU] = 0; + key_buf[org_lwjgl_input_Keyboard_KEY_TAB] = 0; + return; + } + } + } if (buffer_enabled) putEventElement(event); } @@ -253,7 +261,6 @@ XEvent event; unsigned char state; - updateKeyboardGrab(); handleMessages(); memcpy((unsigned char*)buf, key_buf, KEYBOARD_SIZE*sizeof(unsigned char)); @@ -273,7 +280,6 @@ int state; int num_events = 0; - updateKeyboardGrab(); handleMessages(); while (buf_count < KEYBOARD_BUFFER_SIZE * 2 && (key_event = nextEventElement()) != NULL) { Index: org_lwjgl_input_Mouse.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/linux/org_lwjgl_input_Mouse.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/org_lwjgl_input_Mouse.cpp,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- org_lwjgl_input_Mouse.cpp 9 Feb 2003 17:01:01 -0000 1.13 +++ org_lwjgl_input_Mouse.cpp 12 Feb 2003 17:12:01 -0000 1.14 @@ -55,13 +55,12 @@ extern Display *disp; extern Window win; extern int screen; -extern bool isFullscreen(void); -extern bool isFocused(void); extern int getWindowWidth(void); extern int getWindowHeight(void); extern void handleMessages(void); static bool pointer_grabbed; +static bool created = false; static jfieldID fid_has_wheel = NULL; static jfieldID fid_button_count = NULL; @@ -124,13 +123,10 @@ int grabPointer(void) { int result; - int mask = EnterWindowMask | LeaveWindowMask | PointerMotionMask | ButtonPressMask | ButtonReleaseMask; - if (isFullscreen()) { - result = XGrabPointer(disp, win, False, mask, GrabModeAsync, GrabModeAsync, win, blank_cursor, CurrentTime); - XWarpPointer(disp, None, win, 0, 0, 0, 0, current_x, current_y); - XF86VidModeSetViewPort(disp, screen, 0, 0); // make sure we have a centered window - } else - result = XGrabPointer(disp, win, False, mask, GrabModeAsync, GrabModeAsync, None, blank_cursor, CurrentTime); + int mask = FocusChangeMask | PointerMotionMask | ButtonPressMask | ButtonReleaseMask; + result = XGrabPointer(disp, win, False, mask, GrabModeAsync, GrabModeAsync, win, blank_cursor, CurrentTime); + XWarpPointer(disp, None, win, 0, 0, 0, 0, current_x, current_y); + XF86VidModeSetViewPort(disp, screen, 0, 0); // make sure we have a centered window if (result == GrabSuccess) pointer_grabbed = true; return result; @@ -141,20 +137,16 @@ XUngrabPointer(disp, CurrentTime); } -int updatePointerGrab(JNIEnv *env, jclass clazz) { - if (isFullscreen()) { - if (!pointer_grabbed) - return grabPointer(); - } else { - if (isFocused()) { - if (!pointer_grabbed) - return grabPointer(); - } else { - if (pointer_grabbed) - ungrabPointer(); - } - } - return GrabSuccess; +void acquirePointer(void) { + if (!created) + return; + grabPointer(); +} + +void releasePointer(void) { + if (!created) + return; + ungrabPointer(); } /* @@ -180,12 +172,13 @@ #endif return JNI_FALSE; } - if (updatePointerGrab(env, clazz) != GrabSuccess) { + if (grabPointer() != GrabSuccess) { #ifdef _DEBUG printf("Could not grab pointer\n"); #endif return JNI_FALSE; } + created = true; return JNI_TRUE; } @@ -200,6 +193,7 @@ if (pointer_grabbed) ungrabPointer(); XFreeCursor(disp, blank_cursor); + created = false; } void handleButtonPress(XButtonEvent *event) { @@ -248,6 +242,8 @@ void warpPointer(void) { int i; + if (!pointer_grabbed) + return; // Reset pointer to middle of screen if inside a certain inner border if (current_x < POINTER_WARP_BORDER || current_y < POINTER_WARP_BORDER || current_x > getWindowWidth() - POINTER_WARP_BORDER || current_y > getWindowHeight() - POINTER_WARP_BORDER) { @@ -282,7 +278,6 @@ JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nPoll (JNIEnv * env, jclass clazz) { - updatePointerGrab(env, clazz); handleMessages(); int moved_x = current_x - last_x; int moved_y = current_y - last_y; @@ -295,17 +290,5 @@ last_z = current_z; jbooleanArray buttons_array = (jbooleanArray)env->GetStaticObjectField(clazz, fid_buttons); env->SetBooleanArrayRegion(buttons_array, 0, NUM_BUTTONS, buttons); - if (isFullscreen()) - warpPointer(); -} - - -/* - * Class: org_lwjgl_input_Mouse - * Method: nEnableBuffer - * Signature: ()I - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_input_Mouse_nEnableBuffer - (JNIEnv * env, jclass clazz) { - printf("*** FIXME: nEnableBuffer not implemented!\n*"); + warpPointer(); } |
|
From: Elias N. <eli...@us...> - 2003-02-12 12:11:08
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1:/tmp/cvs-serv29536/win32 Modified Files: org_lwjgl_input_Mouse.cpp Log Message: Don't allow the mouse to drift when failing poll Index: org_lwjgl_input_Mouse.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_input_Mouse.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_input_Mouse.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- org_lwjgl_input_Mouse.cpp 9 Feb 2003 19:51:53 -0000 1.9 +++ org_lwjgl_input_Mouse.cpp 12 Feb 2003 12:11:05 -0000 1.10 @@ -266,9 +266,13 @@ HRESULT hRes; // get data from the Mouse - hRes = mDIDevice->GetDeviceState(sizeof(DIMOUSESTATE), &diMouseState); - + hRes = mDIDevice->GetDeviceState(sizeof(DIMOUSESTATE), &diMouseState); if (hRes != DI_OK) { + // Don't allow the mouse to drift when failed + diMouseState.lX = 0; + diMouseState.lY = 0; + diMouseState.lZ = 0; + // did the read fail because we lost input for some reason? // if so, then attempt to reacquire. if(hRes == DIERR_INPUTLOST || hRes == DIERR_NOTACQUIRED) { @@ -281,7 +285,6 @@ printf("Error getting mouse state: %d\n", hRes); #endif } - return; } mEnvironment->SetStaticIntField(clsMouse, fidMDX, (jint) diMouseState.lX); |
|
From: Elias N. <eli...@us...> - 2003-02-12 12:07:54
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1:/tmp/cvs-serv28402/win32 Modified Files: org_lwjgl_Display.cpp Log Message: Don't allow to show the window menu Index: org_lwjgl_Display.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_Display.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_Display.cpp,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- org_lwjgl_Display.cpp 12 Feb 2003 09:33:11 -0000 1.23 +++ org_lwjgl_Display.cpp 12 Feb 2003 12:07:50 -0000 1.24 @@ -148,36 +148,42 @@ case SC_SCREENSAVE: case SC_MONITORPOWER: return 0L; + case SC_MINIMIZE: + isMinimized = true; + appActivate(true); break; - case SC_MINIMIZE: - isMinimized = true; - appActivate(true); - break; - case SC_RESTORE: - isMinimized = false; - appActivate(false); - break; - case SC_CLOSE: - environment->SetStaticBooleanField(clsDisplay, fidclose, true); - //don't continue processing this command since this - //would shutdown the window, which the application might not want to - return 0L; - default: - break; + case SC_RESTORE: + isMinimized = false; + appActivate(false); + break; + case SC_CLOSE: + environment->SetStaticBooleanField(clsDisplay, fidclose, true); + //don't continue processing this command since this + //would shutdown the window, which the application might not want to + return 0L; + default: + return 0L; // don't allow the window menu to show } - } + } + break; case WM_ACTIVATE: { - switch(LOWORD(wParam)) { - case WA_ACTIVE: - case WA_CLICKACTIVE: - isMinimized = false; - break; - case WA_INACTIVE: - isMinimized = true; - break; - } - appActivate(!isMinimized); + switch(LOWORD(wParam)) { + case WA_ACTIVE: + case WA_CLICKACTIVE: + isMinimized = false; + break; + case WA_INACTIVE: + isMinimized = true; + break; + } + appActivate(!isMinimized); + } + break; + case WM_QUIT: + { + environment->SetStaticBooleanField(clsDisplay, fidclose, true); + return 0L; } } @@ -201,15 +207,9 @@ hwnd, // handle to window 0, // first message 0, // last message - PM_NOREMOVE // removal options + PM_REMOVE // removal options )) { - if (GetMessage (&msg, NULL, 0, 0) <= 0) { -#ifdef _DEBUG - printf("We should quit here...\n"); -#endif - return; - } TranslateMessage(&msg); DispatchMessage(&msg); }; |
|
From: Elias N. <eli...@us...> - 2003-02-12 11:27:51
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1:/tmp/cvs-serv9263/win32 Modified Files: org_lwjgl_input_Keyboard.cpp Log Message: Don't return -1 on keyboard read failure Index: org_lwjgl_input_Keyboard.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_input_Keyboard.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_input_Keyboard.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- org_lwjgl_input_Keyboard.cpp 12 Feb 2003 09:55:17 -0000 1.9 +++ org_lwjgl_input_Keyboard.cpp 12 Feb 2003 11:27:48 -0000 1.10 @@ -216,7 +216,7 @@ UINT virt_key = MapVirtualKey(rgdod[i].dwOfs, 1); if (virt_key != 0) { if (!GetKeyboardState(state)) - return -1; + return 0; num_chars = ToUnicode(virt_key, rgdod[i].dwOfs, state, |
|
From: Elias N. <eli...@us...> - 2003-02-12 09:55:20
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1:/tmp/cvs-serv4859/win32 Modified Files: org_lwjgl_input_Keyboard.cpp Log Message: Don't return -1 on keyboard read failure Index: org_lwjgl_input_Keyboard.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_input_Keyboard.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_input_Keyboard.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- org_lwjgl_input_Keyboard.cpp 8 Feb 2003 16:33:00 -0000 1.8 +++ org_lwjgl_input_Keyboard.cpp 12 Feb 2003 09:55:17 -0000 1.9 @@ -244,43 +244,36 @@ } } } - return num_events; } else if (ret == DI_BUFFEROVERFLOW) { #ifdef _DEBUG printf("Keyboard buffer overflowed\n"); #endif - return -1; } else if (ret == DIERR_INPUTLOST) { #ifdef _DEBUG printf("Input lost\n"); #endif - return -1; } else if (ret == DIERR_NOTACQUIRED) { #ifdef _DEBUG printf("not acquired\n"); #endif - return -1; } else if (ret == DIERR_INVALIDPARAM) { #ifdef _DEBUG printf("invalid parameter\n"); #endif - return -1; } else if (ret == DIERR_NOTBUFFERED) { #ifdef _DEBUG printf("not buffered\n"); #endif - return -1; } else if (ret == DIERR_NOTINITIALIZED) { #ifdef _DEBUG printf("not inited\n"); #endif - return -1; } else { #ifdef _DEBUG printf("unknown keyboard error\n"); #endif - return -1; } + return num_events; } /* |
|
From: Elias N. <eli...@us...> - 2003-02-12 09:33:14
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1:/tmp/cvs-serv29660/win32 Modified Files: org_lwjgl_Display.cpp Log Message: added check for software only modes Index: org_lwjgl_Display.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_Display.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_Display.cpp,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- org_lwjgl_Display.cpp 10 Feb 2003 22:13:46 -0000 1.22 +++ org_lwjgl_Display.cpp 12 Feb 2003 09:33:11 -0000 1.23 @@ -445,9 +445,8 @@ return JNI_FALSE; } - int flags = PFD_DRAW_TO_WINDOW | // support window + unsigned int flags = PFD_DRAW_TO_WINDOW | // support window PFD_SUPPORT_OPENGL | // support OpenGL - PFD_GENERIC_ACCELERATED | PFD_DOUBLEBUFFER; // double buffered PIXELFORMATDESCRIPTOR pfd = { @@ -518,7 +517,13 @@ return JNI_FALSE; } - if ((desc.dwFlags & flags) == 0) { + if ((desc.dwFlags & PFD_GENERIC_FORMAT) != 0 || (desc.dwFlags & PFD_GENERIC_ACCELERATED) != 0) { + printf("Mode not supported by hardware.\n"); + destroyAll(); + return JNI_FALSE; + } + + if ((desc.dwFlags & flags) != flags) { printf("Capabilities not supported.\n"); destroyAll(); return JNI_FALSE; |
|
From: Elias N. <eli...@us...> - 2003-02-12 09:29:11
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1:/tmp/cvs-serv28210/win32 Modified Files: org_lwjgl_opengl_BaseGL.cpp Log Message: replaced wglSwapLayerBuffers -> SwapBuffers Index: org_lwjgl_opengl_BaseGL.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_opengl_BaseGL.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_opengl_BaseGL.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- org_lwjgl_opengl_BaseGL.cpp 8 Feb 2003 23:25:11 -0000 1.12 +++ org_lwjgl_opengl_BaseGL.cpp 12 Feb 2003 09:29:07 -0000 1.13 @@ -116,7 +116,7 @@ // Handle OS messages here handleMessages(); // Then do the flip - wglSwapLayerBuffers(hdc, WGL_SWAP_MAIN_PLANE); + SwapBuffers(hdc); } /* |