MCPcopy Create free account
hub / github.com/DiscordMessenger/dm / MdSetClippingRect

Function MdSetClippingRect

src/windows/TextInterface_Win32.cpp:316–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314HRGN _clippingRectRgn = NULL;
315
316void MdSetClippingRect(DrawingContext* context, const Rect& rect)
317{
318 if (_clippingRectRgn) {
319 SelectClipRgn(context->m_hdc, NULL);
320 DeleteRgn(_clippingRectRgn);
321 }
322
323 _clippingRectRgn = CreateRectRgn(W32RECT(rect));
324 SelectClipRgn(context->m_hdc, _clippingRectRgn);
325}
326
327void MdClearClippingRect(DrawingContext* context)
328{

Callers 1

DrawConfinedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected