mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-24 05:10:29 +01:00
xfree86/modes: Use RRTransformEqual in xf86RandR12CrtcSet
The memcmp didn't catch when e.g. only the filter changed. Tested by
alternately running
xrandr --output DVI-I-0 --scale-from 3840x2160 --filter bilinear
xrandr --output DVI-I-0 --scale-from 3840x2160 --filter nearest
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
(cherry picked from commit 4212c884c4)
This commit is contained in:
parent
358f0bcd4f
commit
0934d56dc8
1 changed files with 1 additions and 2 deletions
|
|
@ -1174,8 +1174,7 @@ xf86RandR12CrtcSet(ScreenPtr pScreen,
|
|||
if ((transform != NULL) != crtc->transformPresent)
|
||||
changed = TRUE;
|
||||
else if (transform &&
|
||||
memcmp(&transform->transform, &crtc->transform.transform,
|
||||
sizeof(transform->transform)) != 0)
|
||||
!RRTransformEqual(transform, &crtc->transform))
|
||||
changed = TRUE;
|
||||
|
||||
if (x != crtc->x || y != crtc->y)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue