drm_rect_downscale(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 character
  • horz β€” 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 πŸ”₯


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