mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-10 16:00:26 +01:00
Export API for setting allowed CRTC rotations
This commit is contained in:
parent
ceca97cb84
commit
1a34f1966c
2 changed files with 15 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue