Commit 94fee4a7 authored by Daniel Vetter's avatar Daniel Vetter

drm/rect: update kerneldoc for drm_rect_clip_scaled()

This was forgotten in f96bdf56 ("drm/rect: Handle rounding errors
in drm_rect_clip_scaled, v3.")

Spotted while reviewing patches from Ville touching this area.
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Fixes: f96bdf56 ("drm/rect: Handle rounding errors in drm_rect_clip_scaled, v3.")
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Benjamin Gaignard <benjamin.gaignard@st.com>
Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191126145213.380079-1-daniel.vetter@ffwll.ch
parent 30218eb7
...@@ -81,11 +81,13 @@ static u32 clip_scaled(int src, int dst, int *clip) ...@@ -81,11 +81,13 @@ static u32 clip_scaled(int src, int dst, int *clip)
* @clip: clip rectangle * @clip: clip rectangle
* *
* Clip rectangle @dst by rectangle @clip. Clip rectangle @src by the * Clip rectangle @dst by rectangle @clip. Clip rectangle @src by the
* same amounts multiplied by @hscale and @vscale. * the corresponding amounts, retaining the vertical and horizontal scaling
* factors from @src to @dst.
* *
* RETURNS: * RETURNS:
*
* %true if rectangle @dst is still visible after being clipped, * %true if rectangle @dst is still visible after being clipped,
* %false otherwise * %false otherwise.
*/ */
bool drm_rect_clip_scaled(struct drm_rect *src, struct drm_rect *dst, bool drm_rect_clip_scaled(struct drm_rect *src, struct drm_rect *dst,
const struct drm_rect *clip) const struct drm_rect *clip)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment