[PATCH] randr: Don't return a void expression.

Jesse Adkins jesse_adkins7 at yahoo.com
Wed Jun 30 21:25:34 PDT 2010


Fixed the comment too, for accuracy.

 Signed-off-by: Jesse Adkins <jesse_adkins7 at yahoo.com>

---
 randr/rrcrtc.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c
index 14f6e45..db8842e 100644
--- a/randr/rrcrtc.c
+++ b/randr/rrcrtc.c
@@ -533,12 +533,13 @@ RRModeGetScanoutSize (RRModePtr mode, PictTransformPtr transform,
 }
 
 /**
- * Returns the width/height that the crtc scans out from the framebuffer
+ * Sets width and height to the width and height that the crtc scans out
+ * from the framebuffer
  */
 void
 RRCrtcGetScanoutSize(RRCrtcPtr crtc, int *width, int *height)
 {
-    return RRModeGetScanoutSize (crtc->mode, &crtc->transform, width, height);
+    RRModeGetScanoutSize (crtc->mode, &crtc->transform, width, height);
 }
 
 /*
-- 
1.7.0.4


      


More information about the xorg-devel mailing list