Commit 81f8b6e8 authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Also catch X errors from XF86VidModeSetGammaRamp().

parent 5b62f89b
......@@ -416,8 +416,12 @@ static BOOL xf86vm_set_gamma_ramp(struct x11drv_gamma_ramp *ramp)
ramp->red, ramp->green, ramp->blue, GAMMA_RAMP_SIZE);
}
X11DRV_expect_error(gdi_display, XVidModeErrorHandler, NULL);
ret = pXF86VidModeSetGammaRamp(gdi_display, DefaultScreen(gdi_display),
xf86vm_gammaramp_size, red, green, blue);
if (ret) XSync( gdi_display, FALSE );
if (X11DRV_check_error()) ret = FALSE;
if (red != ramp->red)
heap_free(red);
return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment