drm_rect_clip_scaled(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ drm_rect_clip_scaled(9) πŸŽ€

okay bestie, welcome to the Kernel API Manual entry for drm_rect_clip_scaled(9) β€” yes, the manual name is folded in right here like a little name tag 🫢

✨ NAME ✨

drm_rect_clip_scaled β€” the function that does a scaled clip operation πŸ’…

🌸 SYNOPSIS 🌸

bool drm_rect_clip_scaled (struct drm_rect *src , struct drm_rect *dst ,
       const struct drm_rect *clip );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • src β€” source window rectangle. the origin one, lowkey important πŸŽ€
  • dst β€” destination window rectangle. the one that gets clipped, bestie πŸ’–
  • clip β€” clip rectangle. the boundary icon doing the clipping ✨

πŸ’œ DESCRIPTION πŸ’œ

So here's the tea: this clips rectangle dst by rectangle clip. Then it clips rectangle src by the corresponding amounts, retaining the vertical and horizontal scaling factors from src to dst. no cap, that's the whole vibe check 🌈

⭐ RETURN ⭐

Returns true if rectangle dst is still visible after being clipped, and false otherwise. periodt πŸ’«

πŸ‘€ SEE ALSO πŸ‘€


xoxo, your kernel bestie πŸ’– β€” signed from ./drivers/gpu/drm, dated October 2026, page drm_rect_clip_scaled(9). slay 🌸

πŸ“¦ where this page comes from