drm_rect_adjust_size
Prev | Rectangle Utilities Reference | Next

## Name

drm_rect_adjust_size — adjust the size of the rectangle

## Synopsis

`void drm_rect_adjust_size (` | struct drm_rect * r,
| int dw,
| int dh`)`;

## Arguments

`r`

  rectangle to be adjusted

`dw`

  horizontal adjustment

`dh`

  vertical adjustment

## Description

Change the size of rectangle `r` by `dw` in the horizontal direction, and by `dh` in the vertical direction, while keeping the center of `r` stationary.

Positive `dw` and `dh` increase the size, negative values decrease it.

Prev | Up | Next
struct drm_rect | Home | drm_rect_translate