xserver: Branch 'transform-proposal'
Keith Packard
keithp at kemper.freedesktop.org
Sun Mar 30 19:06:08 PDT 2008
randr/rrcrtc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 436a549e7355c5ddd49086390099d2baca16fde8
Author: Keith Packard <keithp at keithp.com>
Date: Sun Mar 30 19:05:07 2008 -0700
[randr] don't try to compute crtc transform when no mode is set.
Dereferencing the NULL mode pointer would cause a crash. As these transform
matrices won't be used while the CRTC is disabled, just leave their values
alone.
diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c
index f702a36..12c027d 100644
--- a/randr/rrcrtc.c
+++ b/randr/rrcrtc.c
@@ -233,7 +233,7 @@ RRCrtcNotify (RRCrtcPtr crtc,
RRTransformCopy (&crtc->client_current_transform, transform);
RRCrtcChanged (crtc, TRUE);
}
- if (crtc->changed)
+ if (crtc->changed && mode)
{
RRTransformCompute (x, y,
mode->mode.width, mode->mode.height,
More information about the xorg-commit
mailing list