diff options
author | Keith Packard <keithp@keithp.com> | 2008-03-30 19:05:07 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2008-11-24 13:24:41 -0800 |
commit | 9c7679240ad90367693a462e288308b3fdc08f26 (patch) | |
tree | da8fc31edfe02e0dbf0ba748b28fb3b300a8f04f /randr/rrcrtc.c | |
parent | 315b6d0a425d0257f226ee7032aca3ca31665e59 (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/rrcrtc.c')
-rw-r--r-- | randr/rrcrtc.c | 2 |
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, |