*** empty log message ***
This commit is contained in:
parent
46f9ce6ca4
commit
1263176471
|
@ -132,13 +132,17 @@ static bool isXF86VidModeSupported(JNIEnv *env, Display *disp) {
|
|||
}
|
||||
|
||||
static extension getBestDisplayModeExtension(JNIEnv *env, Display *disp) {
|
||||
if (isXrandrSupported(env, disp))
|
||||
if (isXrandrSupported(env, disp)) {
|
||||
printfDebugJava(env, "Using Xrandr for display mode switching");
|
||||
return XRANDR;
|
||||
else if (isXF86VidModeSupported(env, disp))
|
||||
} else if (isXF86VidModeSupported(env, disp)) {
|
||||
printfDebugJava(env, "Using XF86VidMode for display mode switching");
|
||||
return XF86VIDMODE;
|
||||
else
|
||||
} else {
|
||||
printfDebugJava(env, "No display mode extensions available");
|
||||
return NONE;
|
||||
}
|
||||
}
|
||||
|
||||
static mode_info *getXrandrDisplayModes(Display *disp, int screen, int *num_modes) {
|
||||
int num_randr_sizes;
|
||||
|
|
Loading…
Reference in New Issue