mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-22 01:20:26 +00:00
modes: add commit/prepare hooks
This commit is contained in:
parent
06b01186f6
commit
2e31872e05
2 changed files with 29 additions and 5 deletions
|
|
@ -96,6 +96,12 @@ typedef struct _xf86CrtcFuncs {
|
|||
DisplayModePtr mode,
|
||||
DisplayModePtr adjusted_mode);
|
||||
|
||||
/**
|
||||
* Prepare CRTC for an upcoming mode set.
|
||||
*/
|
||||
void
|
||||
(*prepare)(xf86CrtcPtr crtc);
|
||||
|
||||
/**
|
||||
* Callback for setting up a video mode after fixups have been made.
|
||||
*/
|
||||
|
|
@ -105,6 +111,12 @@ typedef struct _xf86CrtcFuncs {
|
|||
DisplayModePtr adjusted_mode,
|
||||
int x, int y);
|
||||
|
||||
/**
|
||||
* Commit mode changes to a CRTC
|
||||
*/
|
||||
void
|
||||
(*commit)(xf86CrtcPtr crtc);
|
||||
|
||||
/* Set the color ramps for the CRTC to the given values. */
|
||||
void
|
||||
(*gamma_set)(xf86CrtcPtr crtc, CARD16 *red, CARD16 *green, CARD16 *blue,
|
||||
|
|
@ -263,6 +275,18 @@ typedef struct _xf86OutputFuncs {
|
|||
DisplayModePtr mode,
|
||||
DisplayModePtr adjusted_mode);
|
||||
|
||||
/**
|
||||
* Callback for preparing mode changes on an output
|
||||
*/
|
||||
void
|
||||
(*prepare)(xf86OutputPtr output);
|
||||
|
||||
/**
|
||||
* Callback for committing mode changes on an output
|
||||
*/
|
||||
void
|
||||
(*commit)(xf86OutputPtr output);
|
||||
|
||||
/**
|
||||
* Callback for setting up a video mode after fixups have been made.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue