Export API for setting allowed CRTC rotations

This commit is contained in:
Keith Packard 2007-01-29 22:04:07 -08:00
parent ceca97cb84
commit 1a34f1966c
2 changed files with 15 additions and 0 deletions

View file

@ -479,6 +479,12 @@ RRCrtcChanged (RRCrtcPtr crtc, Bool layoutChanged);
RRCrtcPtr
RRCrtcCreate (void *devPrivate);
/*
* Set the allowed rotations on a CRTC
*/
void
RRCrtcSetRotations (RRCrtcPtr crtc, Rotation rotations);
/*
* Attach a CRTC to a screen. Once done, this cannot be
* undone without destroying the CRTC; it is separate from Create

View file

@ -80,6 +80,15 @@ RRCrtcCreate (void *devPrivate)
return crtc;
}
/*
* Set the allowed rotations on a CRTC
*/
void
RRCrtcSetRotations (RRCrtcPtr crtc, Rotation rotations)
{
crtc->rotations = rotations;
}
/*
* Attach a Crtc to a screen. This is done as a separate step
* so that an xf86-based driver can create CRTCs in PreInit