From 2a00f1008e2be44e02e7b96f3b1cb6af210597f2 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 23 Oct 2011 18:15:00 +0200 Subject: NEWT/ScreenMode: Make getCurrenctScreenMode..() more fail proof in case the (native) impl. doesn't work. --- src/newt/native/X11Window.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/newt/native/X11Window.c') diff --git a/src/newt/native/X11Window.c b/src/newt/native/X11Window.c index fcdd28305..28806b652 100644 --- a/src/newt/native/X11Window.c +++ b/src/newt/native/X11Window.c @@ -1159,6 +1159,8 @@ JNIEXPORT jint JNICALL Java_jogamp_newt_driver_x11_X11Screen_getNumScreenModeRes int num_sizes; XRRScreenSize *xrrs = XRRSizes(dpy, (int)scrn_idx, &num_sizes); //get possible screen resolutions + DBG_PRINT("getNumScreenModeResolutions0: %d\n", num_sizes); + return num_sizes; } @@ -1272,6 +1274,8 @@ JNIEXPORT jint JNICALL Java_jogamp_newt_driver_x11_X11Screen_getCurrentScreenRat //free XRRFreeScreenConfigInfo(conf); + DBG_PRINT("getCurrentScreenRate0: %d\n", (int)original_rate); + return (jint) original_rate; } @@ -1330,6 +1334,7 @@ JNIEXPORT jint JNICALL Java_jogamp_newt_driver_x11_X11Screen_getCurrentScreenRes //free XRRFreeScreenConfigInfo(conf); + DBG_PRINT("getCurrentScreenResolutionIndex0: %d\n", (int)original_size_id); return (jint)original_size_id; } -- cgit v1.2.3