diff options
author | Kenneth Russel <[email protected]> | 2008-05-29 12:24:38 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2008-05-29 12:24:38 +0000 |
commit | 45fa88a5904d3740313bd86b7837f21b3c27ca7f (patch) | |
tree | c92c23de6eb86b9a6439ebef646fad32ed8cb5a6 /src/native | |
parent | 71d9ee31c2f4aa90861c601a184b767a2cb84888 (diff) |
Made call to ByteOrder.nativeOrder() in BufferUtil reflective so it
can be done when running on Java SE even if the code is compiled on
CDC/FP. Fixed bug in WindowsWindow.c where upcalls from native WndProc
were not being made.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1647 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/native')
-rwxr-xr-x | src/native/jogl/WindowsWindow.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/native/jogl/WindowsWindow.c b/src/native/jogl/WindowsWindow.c index 8742e5fbe..157615950 100755 --- a/src/native/jogl/WindowsWindow.c +++ b/src/native/jogl/WindowsWindow.c @@ -224,12 +224,14 @@ JNIEXPORT jlong JNICALL Java_com_sun_javafx_newt_windows_WindowsWindow_CreateWin * Signature: (J)V */ JNIEXPORT void JNICALL Java_com_sun_javafx_newt_windows_WindowsWindow_DispatchMessages - (JNIEnv *env, jclass clazz, jlong window) + (JNIEnv *_env, jclass clazz, jlong window) { int i = 0; MSG msg; BOOL gotOne; + env = _env; + // Periodically take a break do { gotOne = PeekMessage(&msg, (HWND) window, 0, 0, PM_REMOVE); @@ -239,6 +241,8 @@ JNIEXPORT void JNICALL Java_com_sun_javafx_newt_windows_WindowsWindow_DispatchMe DispatchMessage(&msg); } } while (gotOne && i < 100); + + env = NULL; } /* |