drm_rect_downscale(9)
π drm_rect_downscale(9) β like, the downscaling one
okay so bestie, welcome to the Kernel API Manual β¨ this is the page for drm_rect_downscale(9) and honestly? it's short, it's sweet, it eats. let's get into it π
β¨ NAME β¨
drm_rect_downscale β downscale a rectangle π¦ (yes, that's literally it, that's the whole vibe)
β¨ SYNOPSIS β¨
void drm_rect_downscale (struct drm_rect *r , int horz , int vert );
like, that's the whole function signature, no notes π
β¨ ARGUMENTS β¨
rβ the rectangle you wanna downscale π this is the one getting divided, she's the main characterhorzβ horizontal downscale factor πΈ (how much you're squishing it side-to-side)vertβ vertical downscale factor π§ (how much you're squishing it top-to-bottom)
β¨ DESCRIPTION β¨
okay so here's the tea βοΈ: this function divides the coordinates of the rectangle r by horz and vert. that's it. that's the whole thing. divide, divide, done, slay π
no cap, it's not doing anything spicy β horz handles the horizontal division, vert handles the vertical one, and your rectangle comes out downscaled. periodt π
β¨ SEE ALSO β¨
like, go off and read the whole friend group honestly π₯
- Kernel file
./include/drm/drm_rect.hrect utils(9) - struct drm_rect(9)
- DRM_RECT_INIT(9)
- DRM_RECT_FMT(9)
- DRM_RECT_ARG(9)
- DRM_RECT_FP_FMT(9)
- DRM_RECT_FP_ARG(9)
- drm_rect_init(9)
- drm_rect_adjust_size(9)
- drm_rect_translate(9)
- drm_rect_translate_to(9)
- drm_rect_width(9)
- drm_rect_height(9)
- drm_rect_visible(9)
- drm_rect_equals(9)
- drm_rect_fp_to_int(9)
- drm_rect_overlap(9)
and that's the page bestie!! π«Ά this lil icon came from ./include/drm, dated October 2026 β mwah, love that for us π go divide some rectangles, you're gonna do amazing βπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms