Update of /cvsroot/java-game-lib/LWJGL/src/native/win32
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30057/src/native/win32
Modified Files:
org_lwjgl_Display.cpp
Log Message:
Removed C++ exception handlers
Index: org_lwjgl_Display.cpp
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_Display.cpp,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- org_lwjgl_Display.cpp 11 Mar 2004 19:50:42 -0000 1.62
+++ org_lwjgl_Display.cpp 10 May 2004 08:55:09 -0000 1.63
@@ -287,13 +287,9 @@
// Return device gamma to normal
HDC screenDC = GetDC(NULL);
- try {
- if (!SetDeviceGammaRamp(screenDC, originalGamma)) {
- printfDebug("Could not reset device gamma\n");
- }
- } catch (...) {
- printf("Exception occurred in SetDeviceGammaRamp\n");
- }
+ if (!SetDeviceGammaRamp(screenDC, originalGamma)) {
+ printfDebug("Could not reset device gamma\n");
+ }
ReleaseDC(NULL, screenDC);
if (modeSet) {
@@ -312,13 +308,9 @@
static void tempResetDisplayMode() {
// Return device gamma to normal
HDC screenDC = GetDC(NULL);
- try {
- if (!SetDeviceGammaRamp(screenDC, originalGamma)) {
- printfDebug("Could not reset device gamma\n");
- }
- } catch (...) {
- printf("Exception occurred in SetDeviceGammaRamp\n");
- }
+ if (!SetDeviceGammaRamp(screenDC, originalGamma)) {
+ printfDebug("Could not reset device gamma\n");
+ }
ReleaseDC(NULL, screenDC);
if (modeSet) {
@@ -335,13 +327,9 @@
static void tempRestoreDisplayMode() {
// Restore gamma
HDC screenDC = GetDC(NULL);
- try {
- if (!SetDeviceGammaRamp(screenDC, currentGamma)) {
- printfDebug("Could not restore device gamma\n");
- }
- } catch (...) {
- printf("Exception occurred in SetDeviceGammaRamp\n");
- }
+ if (!SetDeviceGammaRamp(screenDC, currentGamma)) {
+ printfDebug("Could not restore device gamma\n");
+ }
ReleaseDC(NULL, screenDC);
if (!modeSet) {
@@ -424,14 +412,9 @@
env->DeleteLocalRef(newMode);
// Get the default gamma ramp
- try {
- if (GetDeviceGammaRamp(screenDC, originalGamma) == FALSE) {
- printfDebug("Failed to get initial device gamma\n");
- }
- } catch (...) {
- printf("Exception occurred in GetDeviceGammaRamp\n");
+ if (GetDeviceGammaRamp(screenDC, originalGamma) == FALSE) {
+ printfDebug("Failed to get initial device gamma\n");
}
-
ReleaseDC(NULL, screenDC);
}
|