mirror of
https://github.com/X11Libre/xf86-video-vmware.git
synced 2026-03-23 17:19:24 +00:00
drop ifdef XF86_CRTC_VERSION
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
80285869be
commit
7c5b0fa4bd
@@ -226,12 +226,10 @@ crtc_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
|
||||
vmwgfx_scanout_refresh(pixmap);
|
||||
|
||||
/* Only set gamma when needed, to avoid unneeded delays. */
|
||||
#if defined(XF86_CRTC_VERSION) && XF86_CRTC_VERSION >= 3
|
||||
if (!crtc->active && crtc->version >= 3)
|
||||
crtc->funcs->gamma_set(crtc, crtc->gamma_red, crtc->gamma_green,
|
||||
crtc->gamma_blue, crtc->gamma_size);
|
||||
crtc->active = TRUE;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Strictly, this needs to be done only once per configuration change,
|
||||
|
||||
Reference in New Issue
Block a user