mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
st/xorg: Fix build failure against xserver with XF86_CRTC_VERSION < 3.
Reported by Vinson Lee.
This commit is contained in:
parent
db234176b1
commit
be0665b461
1 changed files with 2 additions and 4 deletions
|
|
@ -135,14 +135,12 @@ crtc_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
|
|||
|
||||
/* Only set gamma when needed, to avoid unneeded delays. */
|
||||
#if defined(XF86_CRTC_VERSION) && XF86_CRTC_VERSION >= 3
|
||||
if (!crtc->active)
|
||||
#endif
|
||||
if (!crtc->active && crtc->version >= 3)
|
||||
crtc->funcs->gamma_set(crtc, crtc->gamma_red, crtc->gamma_green,
|
||||
crtc->gamma_blue, crtc->gamma_size);
|
||||
|
||||
#if defined(XF86_CRTC_VERSION) && XF86_CRTC_VERSION >= 3
|
||||
crtc->active = TRUE;
|
||||
#endif
|
||||
|
||||
crtc->x = x;
|
||||
crtc->y = y;
|
||||
crtc->mode = *mode;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue