mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-08 07:58:03 +02:00
xfree86: move didLock assignment down to where the function pointer is valid.
crtc->funcs->lock is NULL, so it's no use calling it here. Move it down so it's actually defined before we use it. Introduced with6f59a81600. Tested-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit0de58c88ab) Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
72c9bc64ff
commit
87900645c2
1 changed files with 1 additions and 1 deletions
|
|
@ -265,7 +265,6 @@ xf86CrtcSetModeTransform (xf86CrtcPtr crtc, DisplayModePtr mode, Rotation rotati
|
|||
|
||||
adjusted_mode = xf86DuplicateMode(mode);
|
||||
|
||||
didLock = crtc->funcs->lock (crtc);
|
||||
|
||||
saved_mode = crtc->mode;
|
||||
saved_x = crtc->x;
|
||||
|
|
@ -295,6 +294,7 @@ xf86CrtcSetModeTransform (xf86CrtcPtr crtc, DisplayModePtr mode, Rotation rotati
|
|||
goto done;
|
||||
}
|
||||
|
||||
didLock = crtc->funcs->lock (crtc);
|
||||
/* Pass our mode to the outputs and the CRTC to give them a chance to
|
||||
* adjust it according to limitations or output properties, and also
|
||||
* a chance to reject the mode entirely.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue