MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / FillItem

Function FillItem

Source/ModSequenceEditor.cpp:68–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void FillItem(CDC *pDC, int Index, int Value, bool Remove)
69{
70 const int POS[] = {0, 7, 14, 21, 28, 35, 42, 52};
71 const int VAL[] = {3, 2, 1, 0, 7, 6, 5, 4};
72 const int COL[] = {0x00FF00, 0x00FF00, 0x00FF00, 0x00FFFF, 0x00FF00, 0x00FF00, 0x00FF00, 0xFF0000};
73
74 int x = 2 + Index * (SIZE_X + 2);
75 pDC->FillSolidRect(x, POS[VAL[Value]] + 2, SIZE_X, 5, Remove == false ? COL[VAL[Value]] : 0xD0D0D0);
76}
77
78void CModSequenceEditor::OnPaint()
79{

Callers 1

EditSequenceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected