summaryrefslogtreecommitdiff
path: root/randr
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-03-30 19:05:07 -0700
committerKeith Packard <keithp@keithp.com>2008-11-24 13:24:41 -0800
commit9c7679240ad90367693a462e288308b3fdc08f26 (patch)
treeda8fc31edfe02e0dbf0ba748b28fb3b300a8f04f /randr
parent315b6d0a425d0257f226ee7032aca3ca31665e59 (diff)
[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.
Diffstat (limited to 'randr')
-rw-r--r--randr/rrcrtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c
index c237f03e6..c43163706 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,