MCPcopy Create free account
hub / github.com/bbbradsmith/nsfplay / OnPaint

Method OnPaint

nsfplug_ui/KeyHeader.cpp:62–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void KeyHeader::OnPaint()
63{
64 CPaintDC dc(this); // device context for painting
65 CRect rect;
66 GetClientRect(rect);
67
68 m_memDC.FillSolidRect(rect,RGB(0,0,0));
69 m_memDC.BitBlt(0,0,336,20,&m_hedDC,0,0,SRCCOPY);
70
71 if(m_nNoiseStatus)
72 {
73 CRect rect(0,0,5,4);
74 rect.MoveToXY(92+(16-m_nNoiseStatus)*8,5);
75 m_memDC.FillSolidRect(rect, RGB(0,240,0));
76 }
77 if(m_nDPCMStatus)
78 {
79 CRect rect(0,0,5,4);
80 rect.MoveToXY(92+(16-m_nDPCMStatus)*8,13);
81 m_memDC.FillSolidRect(rect, RGB(0,240,0));
82 }
83
84 m_memDC.Draw3dRect(0,0,rect.right,rect.bottom,RGB(255,255,255),RGB(128,128,128));
85
86 m_memDC.MoveTo(0,20);
87 m_memDC.LineTo(rect.right,20);
88 dc.BitBlt(0,0,rect.right,rect.bottom,&m_memDC,0,0,SRCCOPY);
89}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected