diff options
author | Keith Packard <keithp@keithp.com> | 2008-03-17 15:21:26 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2008-11-24 13:24:37 -0800 |
commit | ddc8466137d229fdc100cc403f492c7d61a1ba89 (patch) | |
tree | 057c282353bfb565a51a5b628bc051bf48794816 | |
parent | 16c093afd4f6b30d889cacdc994b0024f9bd83d5 (diff) |
Initialize and cleanup new filter fields in xf86Crtc.
-rw-r--r-- | hw/xfree86/modes/xf86Crtc.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c index a7e7af6e1..57b0140b7 100644 --- a/hw/xfree86/modes/xf86Crtc.c +++ b/hw/xfree86/modes/xf86Crtc.c @@ -103,6 +103,16 @@ xf86CrtcCreate (ScrnInfoPtr scrn, #endif crtc->rotation = RR_Rotate_0; crtc->desiredRotation = RR_Rotate_0; + PictureTransformInitIdentity (&crtc->crtc_to_framebuffer); + PictureTransformInitIdentity (&crtc->framebuffer_to_crtc); + crtc->filter = NULL; + crtc->params = NULL; + crtc->nparams = 0; + crtc->filter_width = 0; + crtc->filter_height = 0; + crtc->transform_in_use = FALSE; + memset (&crtc->bounds, '\0', sizeof (crtc->bounds)); + if (xf86_config->crtc) crtcs = xrealloc (xf86_config->crtc, (xf86_config->num_crtc + 1) * sizeof (xf86CrtcPtr)); @@ -134,6 +144,8 @@ xf86CrtcDestroy (xf86CrtcPtr crtc) xf86_config->num_crtc--; break; } + if (crtc->params) + xfree (crtc->params); xfree (crtc); } |