drop #ifdef RANDR_12_INTERFACE

All non-ancient Xserver versions have it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2026-01-12 18:37:22 +01:00
committed by Enrico Weigelt
parent fdc7401f69
commit 3c6c32e611
3 changed files with 0 additions and 10 deletions

View File

@@ -976,11 +976,9 @@ static void drv_load_palette(ScrnInfoPtr pScrn, int numColors,
xf86CrtcPtr crtc = xf86_config->crtc[c];
/* Make the change through RandR */
#ifdef RANDR_12_INTERFACE
if (crtc->randr_crtc)
RRCrtcGammaSet(crtc->randr_crtc, ms->lut_r, ms->lut_g, ms->lut_b);
else
#endif
crtc->funcs->gamma_set(crtc, ms->lut_r, ms->lut_g, ms->lut_b, 256);
}
}

View File

@@ -355,7 +355,6 @@ output_mode_valid(xf86OutputPtr output, DisplayModePtr pMode)
return MODE_OK;
}
#ifdef RANDR_12_INTERFACE
static Bool
output_set_property(xf86OutputPtr output, Atom property, RRPropertyValuePtr value)
{
@@ -406,7 +405,6 @@ output_set_property(xf86OutputPtr output, Atom property, RRPropertyValuePtr valu
return TRUE;
}
#endif /* RANDR_12_INTERFACE */
/**
* vmwgfx_output_property_scan - Update a single property on a single output
@@ -503,9 +501,7 @@ output_destroy(xf86OutputPtr output)
static const xf86OutputFuncsRec output_funcs = {
.create_resources = output_create_resources,
#ifdef RANDR_12_INTERFACE
.set_property = output_set_property,
#endif
#ifdef RANDR_13_INTERFACE
.get_property = output_get_property,
#endif

View File

@@ -62,11 +62,7 @@ vmwgfx_notify_rr(ScreenPtr pScreen)
*/
pScrPriv->lastSetTime = currentTime;
pScrPriv->lastConfigTime = currentTime;
#ifdef RANDR_12_INTERFACE
xf86RandR12TellChanged(pScreen);
#else
RRTellChanged(pScreen);
#endif
}
/**