---
name: "drm_rect_adjust_size"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/drm_rect_adjust_size"
---

# drm\_rect\_adjust\_size(9)

adjust the size of the rectangle

## 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.

## AUTHORS

**Jesse Barnes** \<jesse.barnes@intel.com\>\
 Intel Corporation,

Initial version

**Laurent Pinchart** \<laurent.pinchart@ideasonboard.com\>\
 Ideas on board SPRL,

Driver internals

**Daniel Vetter** \<daniel.vetter@ffwll.ch\>\
 Intel Corporation,

Contributions all over the place

## COPYRIGHT
