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

Function MdDrawForwardBackground

src/windows/TextInterface_Win32.cpp:292–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292void MdDrawForwardBackground(DrawingContext* context, const Rect& rect)
293{
294 RECT rc = RectToNative(rect);
295
296 rc.right = rc.left - ScaleByDPI(3);
297 rc.left = rc.right - ScaleByDPI(3);
298
299 if (context->m_bInvertTextColor) {
300 COLORREF old = ri::SetDCBrushColor(context->m_hdc, context->InvertIfNeeded(GetSysColor(COLOR_GRAYTEXT)));
301 FillRect(context->m_hdc, &rc, ri::GetDCBrush());
302 ri::SetDCBrushColor(context->m_hdc, old);
303 }
304 else {
305 FillRect(context->m_hdc, &rc, ri::GetSysColorBrush(COLOR_GRAYTEXT));
306 }
307}
308
309int MdGetQuoteIndentSize()
310{

Callers 1

DrawMethod · 0.85

Calls 3

RectToNativeFunction · 0.85
ScaleByDPIFunction · 0.85
InvertIfNeededMethod · 0.45

Tested by

no test coverage detected