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) |
2
(8) |
3
(4) |
4
(6) |
5
(1) |
6
|
|
7
(8) |
8
|
9
(11) |
10
(5) |
11
(1) |
12
|
13
|
|
14
|
15
|
16
(3) |
17
(1) |
18
|
19
|
20
|
|
21
(1) |
22
(1) |
23
(2) |
24
|
25
(1) |
26
(11) |
27
|
|
28
(5) |
29
(5) |
30
(7) |
|
|
|
|
|
From: Caspian Rychlik-P. <ci...@us...> - 2003-09-16 15:42:29
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1:/tmp/cvs-serv23904/src/native/win32 Modified Files: org_lwjgl_Display.cpp Log Message: Gamma back in 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.48 retrieving revision 1.49 diff -u -d -r1.48 -r1.49 --- org_lwjgl_Display.cpp 16 Sep 2003 08:29:16 -0000 1.48 +++ org_lwjgl_Display.cpp 16 Sep 2003 15:42:25 -0000 1.49 @@ -59,39 +59,39 @@ */ JNIEXPORT jobjectArray JNICALL Java_org_lwjgl_Display_nGetAvailableDisplayModes (JNIEnv * env, jclass clazz) -{ - jobjectArray result = GetAvailableDisplayModesEx(env); - if (result == NULL) { -#ifdef _DEBUG - printf("Extended display mode selection failed, using fallback\n"); -#endif - result = GetAvailableDisplayModes(env); - } - return result; +{ + jobjectArray result = GetAvailableDisplayModesEx(env); + if (result == NULL) { +#ifdef _DEBUG + printf("Extended display mode selection failed, using fallback\n"); +#endif + result = GetAvailableDisplayModes(env); + } + return result; } /** * Choose displaymodes using extended codepath (multiple displaydevices) */ -jobjectArray GetAvailableDisplayModesEx(JNIEnv * env) { - typedef BOOL (WINAPI * EnumDisplayDevicesAPROC)(IN LPCSTR lpDevice, IN DWORD iDevNum, OUT PDISPLAY_DEVICEA lpDisplayDevice, IN DWORD dwFlags); - typedef BOOL (WINAPI * EnumDisplaySettingsExAPROC)(IN LPCSTR lpszDeviceName, IN DWORD iModeNum, OUT LPDEVMODEA lpDevMode, IN DWORD dwFlags); - EnumDisplayDevicesAPROC EnumDisplayDevicesA; - EnumDisplaySettingsExAPROC EnumDisplaySettingsExA; - - HMODULE lib_handle = LoadLibrary("user32.dll"); - if (lib_handle == NULL) { -#ifdef _DEBUG - printf("Could not load user32.dll\n"); -#endif - return NULL; - } - EnumDisplayDevicesA = (EnumDisplayDevicesAPROC)GetProcAddress(lib_handle, "EnumDisplayDevicesA"); - if (EnumDisplayDevicesA == NULL) - return NULL; - EnumDisplaySettingsExA = (EnumDisplaySettingsExAPROC)GetProcAddress(lib_handle, "EnumDisplaySettingsExA"); - if (EnumDisplaySettingsExA == NULL) - return NULL; +jobjectArray GetAvailableDisplayModesEx(JNIEnv * env) { + typedef BOOL (WINAPI * EnumDisplayDevicesAPROC)(IN LPCSTR lpDevice, IN DWORD iDevNum, OUT PDISPLAY_DEVICEA lpDisplayDevice, IN DWORD dwFlags); + typedef BOOL (WINAPI * EnumDisplaySettingsExAPROC)(IN LPCSTR lpszDeviceName, IN DWORD iModeNum, OUT LPDEVMODEA lpDevMode, IN DWORD dwFlags); + EnumDisplayDevicesAPROC EnumDisplayDevicesA; + EnumDisplaySettingsExAPROC EnumDisplaySettingsExA; + + HMODULE lib_handle = LoadLibrary("user32.dll"); + if (lib_handle == NULL) { +#ifdef _DEBUG + printf("Could not load user32.dll\n"); +#endif + return NULL; + } + EnumDisplayDevicesA = (EnumDisplayDevicesAPROC)GetProcAddress(lib_handle, "EnumDisplayDevicesA"); + if (EnumDisplayDevicesA == NULL) + return NULL; + EnumDisplaySettingsExA = (EnumDisplaySettingsExAPROC)GetProcAddress(lib_handle, "EnumDisplaySettingsExA"); + if (EnumDisplaySettingsExA == NULL) + return NULL; int i = 0, j = 0, n = 0; int AvailableModes = 0; @@ -146,7 +146,7 @@ env->SetObjectArrayElement(ret, n++, displayMode); } } - } + } FreeLibrary(lib_handle); return ret; } @@ -394,9 +394,6 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_Display_setGammaRamp (JNIEnv * env, jclass clazz, jobject gammaRampBuffer) { - - return JNI_FALSE; - const float *gammaRamp = (const float *)env->GetDirectBufferAddress(gammaRampBuffer); // Turn array of floats into array of RGB WORDs |
|
From: Caspian Rychlik-P. <ci...@us...> - 2003-09-16 15:39:50
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input In directory sc8-pr-cvs1:/tmp/cvs-serv23300/src/java/org/lwjgl/input Modified Files: Controller.java Cursor.java Mouse.java Log Message: Lazy library instantiation Index: Controller.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/input/Controller.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input/Controller.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- Controller.java 17 Aug 2003 18:48:29 -0000 1.7 +++ Controller.java 16 Sep 2003 15:39:46 -0000 1.8 @@ -132,10 +132,9 @@ private static String[] buttonName; private static final Map buttonMap = new HashMap(8); - static { - initialize(); - } - + /** Lazy initialization */ + private static boolean initialized; + /** * Controller cannot be constructed. */ @@ -156,6 +155,7 @@ buttonMap.put(buttonName[i], new Integer(i)); } + initialized = true; } /** @@ -163,6 +163,10 @@ * @throws Exception if the controller could not be created for any reason */ public static void create() throws Exception { + if (!initialized) { + initialize(); + } + if (created) { return; } Index: Cursor.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/input/Cursor.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input/Cursor.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- Cursor.java 17 Aug 2003 16:38:57 -0000 1.11 +++ Cursor.java 16 Sep 2003 15:39:46 -0000 1.12 @@ -50,9 +50,8 @@ public class Cursor { - static { - System.loadLibrary(Sys.getLibraryName()); - } + /** Lazy initialization */ + private static boolean initialized = false; /** * The native handle to the cursor @@ -75,14 +74,22 @@ * @throws Exception if the cursor could not be created for any reason */ public Cursor(int width, int height, int xHotspot, int yHotspot, int numImages, IntBuffer images, IntBuffer delays) throws Exception { + if (!initialized) { + initialize(); + } assert Mouse.isCreated(); assert width*height*numImages <= images.remaining(): "width*height*numImages > images.remaining()"; assert delays == null || numImages <= delays.remaining(): "delays != null && numImages > delays.remaining()"; - assert xHotspot <= width && xHotspot >= 0: "xHotspot > width || xHotspot < 0"; - assert yHotspot <= height && yHotspot >= 0: "yHotspot > height || yHotspot < 0"; + assert xHotspot < width && xHotspot >= 0: "xHotspot > width || xHotspot < 0"; + assert yHotspot < height && yHotspot >= 0: "yHotspot > height || yHotspot < 0"; IntBuffer images_copy = ByteBuffer.allocateDirect(images.remaining()*4).order(ByteOrder.nativeOrder()).asIntBuffer(); flipImages(width, height, numImages, images, images_copy); nativeHandle = nCreateCursor(width, height, xHotspot, height - yHotspot, numImages, images_copy, 0, delays, delays != null ? delays.position() : 0); + } + + private static void initialize() { + System.loadLibrary(Sys.getLibraryName()); + initialized = true; } private static void flipImages(int width, int height, int numImages, IntBuffer images, IntBuffer images_copy) { Index: Mouse.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/input/Mouse.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/input/Mouse.java,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- Mouse.java 29 Aug 2003 08:00:43 -0000 1.24 +++ Mouse.java 16 Sep 2003 15:39:46 -0000 1.25 @@ -83,9 +83,8 @@ private static String[] buttonName; private static final Map buttonMap = new HashMap(16); - static { - initialize(); - } + /** Lazy initialization */ + private static boolean initialized; /** * Mouse cannot be constructed. @@ -190,6 +189,8 @@ buttonName[i] = "BUTTON" + i; buttonMap.put(buttonName[i], new Integer(i)); } + + initialized = true; } /** @@ -203,17 +204,20 @@ * @throws Exception if the mouse could not be created for any reason */ public static void create() throws Exception { - if (created) + if (!initialized) { + initialize(); + } + if (created) { return; - if (!nCreate()) + } + if (!nCreate()) { throw new Exception("The mouse could not be created."); + } created = true; currentCursor = null; - //set mouse buttons + // set mouse buttons buttons = new boolean[buttonCount]; - - } /** @@ -271,7 +275,10 @@ */ public static boolean isButtonDown(int button) { assert created : "The mouse has not been created."; - return buttons[button]; + if (button >= buttonCount) + return false; + else + return buttons[button]; } /** @@ -280,7 +287,7 @@ * @return a String with the button's human readable name in it or null if the button is unnamed */ public static String getButtonName(int button) { - if (button < 0 || button >= buttonName.length) + if (button >= buttonName.length) return null; else return buttonName[button]; |
|
From: Elias N. <eli...@us...> - 2003-09-16 08:29:52
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1:/tmp/cvs-serv31580 Modified Files: org_lwjgl_Display.cpp Log Message: Tried harder to fix NT display mode selection 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.47 retrieving revision 1.48 diff -u -d -r1.47 -r1.48 --- org_lwjgl_Display.cpp 10 Sep 2003 22:55:25 -0000 1.47 +++ org_lwjgl_Display.cpp 16 Sep 2003 08:29:16 -0000 1.48 @@ -59,32 +59,40 @@ */ JNIEXPORT jobjectArray JNICALL Java_org_lwjgl_Display_nGetAvailableDisplayModes (JNIEnv * env, jclass clazz) -{ - // Determine whether to use a display name or NULL, which depends on the operating - // system - OSVERSIONINFO osvi; - - osvi.dwOSVersionInfoSize = sizeof(osvi); - GetVersionEx(&osvi); - - if (osvi.dwPlatformId == VER_PLATFORM_WIN32_NT && osvi.dwMajorVersion >= 5 || - osvi.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS && osvi.dwMinorVersion >= 10) { -#ifdef _DEBUG - printf("Selecting extended display mode check\n"); -#endif - return GetAvailableDisplayModesEx(env); - } else { -#ifdef _DEBUG - printf("Selecting standard display mode check"); -#endif - return GetAvailableDisplayModes(env); - } +{ + jobjectArray result = GetAvailableDisplayModesEx(env); + if (result == NULL) { +#ifdef _DEBUG + printf("Extended display mode selection failed, using fallback\n"); +#endif + result = GetAvailableDisplayModes(env); + } + return result; } /** * Choose displaymodes using extended codepath (multiple displaydevices) */ -jobjectArray GetAvailableDisplayModesEx(JNIEnv * env) { +jobjectArray GetAvailableDisplayModesEx(JNIEnv * env) { + typedef BOOL (WINAPI * EnumDisplayDevicesAPROC)(IN LPCSTR lpDevice, IN DWORD iDevNum, OUT PDISPLAY_DEVICEA lpDisplayDevice, IN DWORD dwFlags); + typedef BOOL (WINAPI * EnumDisplaySettingsExAPROC)(IN LPCSTR lpszDeviceName, IN DWORD iModeNum, OUT LPDEVMODEA lpDevMode, IN DWORD dwFlags); + EnumDisplayDevicesAPROC EnumDisplayDevicesA; + EnumDisplaySettingsExAPROC EnumDisplaySettingsExA; + + HMODULE lib_handle = LoadLibrary("user32.dll"); + if (lib_handle == NULL) { +#ifdef _DEBUG + printf("Could not load user32.dll\n"); +#endif + return NULL; + } + EnumDisplayDevicesA = (EnumDisplayDevicesAPROC)GetProcAddress(lib_handle, "EnumDisplayDevicesA"); + if (EnumDisplayDevicesA == NULL) + return NULL; + EnumDisplaySettingsExA = (EnumDisplaySettingsExAPROC)GetProcAddress(lib_handle, "EnumDisplaySettingsExA"); + if (EnumDisplaySettingsExA == NULL) + return NULL; + int i = 0, j = 0, n = 0; int AvailableModes = 0; @@ -98,12 +106,12 @@ DisplayDevice.cb = sizeof(DISPLAY_DEVICE); //enumerate all displays, and all of their displaymodes - while(EnumDisplayDevices(NULL, i++, &DisplayDevice, 0) != 0) { + while(EnumDisplayDevicesA(NULL, i++, &DisplayDevice, 0) != 0) { #ifdef _DEBUG printf("Querying %s device\n", DisplayDevice.DeviceString); #endif j = 0; - while(EnumDisplaySettingsEx(DisplayDevice.DeviceName, j++, &DevMode, 0) != 0) { + while(EnumDisplaySettingsExA(DisplayDevice.DeviceName, j++, &DevMode, 0) != 0) { #ifdef _DEBUG printf("Checking setting #%d\n", j); #endif @@ -125,9 +133,9 @@ jmethodID displayModeConstructor = env->GetMethodID(displayModeClass, "<init>", "(IIII)V"); i = 0, n = 0; - while(EnumDisplayDevices(NULL, i++, &DisplayDevice, 0) != 0) { + while(EnumDisplayDevicesA(NULL, i++, &DisplayDevice, 0) != 0) { j = 0; - while(EnumDisplaySettingsEx(DisplayDevice.DeviceName, j++, &DevMode, 0) != 0) { + while(EnumDisplaySettingsExA(DisplayDevice.DeviceName, j++, &DevMode, 0) != 0) { // Filter out indexed modes if (DevMode.dmBitsPerPel > 8) { jobject displayMode; @@ -138,7 +146,8 @@ env->SetObjectArrayElement(ret, n++, displayMode); } } - } + } + FreeLibrary(lib_handle); return ret; } |