drm_rect_clip_scaled
Prev | Rectangle Utilities Reference | Next

## Name

drm_rect_clip_scaled — perform a scaled clip operation

## Synopsis

`bool drm_rect_clip_scaled (` | struct drm_rect * src,
| struct drm_rect * dst,
| const struct drm_rect * clip,
| int hscale,
| int vscale`)`;

## Arguments

`src`

  source window rectangle

`dst`

  destination window rectangle

`clip`

  clip rectangle

`hscale`

  horizontal scaling factor

`vscale`

  vertical scaling factor

## Description

Clip rectangle `dst` by rectangle `clip`. Clip rectangle `src` by the same amounts multiplied by `hscale` and `vscale`.

## RETURNS

`true` if rectangle `dst` is still visible after being clipped, `false` otherwise

Prev | Up | Next
drm_rect_intersect | Home | drm_rect_calc_hscale