MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / GUI_Box_Draw

Method GUI_Box_Draw

Source/GUI_Element.cpp:1106–1115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1104}
1105
1106void cFodder::GUI_Box_Draw(const size_t pColorShadow, const size_t pColorPrimary) {
1107
1108 int16 X = mGUI_Temp_X;
1109 int16 Y = mGUI_Temp_Y;
1110 int16 Width = mGUI_Temp_Width;
1111 int16 Height = mGUI_Draw_LastHeight;
1112
1113 Briefing_DrawBox(X - 2, Y - 2, Width + 4, Height + 5, (uint8)pColorPrimary);
1114 Briefing_DrawBox(X - 3, Y - 3, Width + 4, Height + 5, (uint8)pColorShadow);
1115}
1116
1117void cFodder::GUI_Button_Setup(void(cFodder::*pFunction)(void)) {
1118 sGUI_Element* Element = mGUI_NextFreeElement;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected