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

Method Briefing_DrawBox

Source/Fodder.cpp:10302–10315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10300}
10301
10302void cFodder::Briefing_DrawBox(int16 pX, int16 pY, int16 pWidth, int16 pHeight, uint8 pColor) {
10303 pX += 0x10;
10304 pY += 0x10;
10305
10306 // Top and Bottom
10307 Briefing_Draw_Horizontal_Line(pX, pX + pWidth, pY, pColor);
10308
10309 Briefing_Draw_Horizontal_Line(pX, pX + pWidth, pY + pHeight, pColor);
10310
10311 // Sides of box
10312 Briefing_Draw_Vertical_Line(pX, pY + pHeight, pY, pColor);
10313
10314 Briefing_Draw_Vertical_Line(pX + pWidth, pY + pHeight, pY, pColor);
10315}
10316
10317void cFodder::Briefing_Draw_Pixel(int16 pX, int16 pY, uint8 pColor) {
10318 uint8* di = mSurface->GetSurfaceBuffer();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected