MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / GameLoop_DrawText2

Function GameLoop_DrawText2

src/opendune.c:376–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376static void GameLoop_DrawText2(const char *string, uint16 left, uint16 top, uint8 fgColourNormal, uint8 fgColourSelected, uint8 bgColour)
377{
378 uint8 i;
379
380 for (i = 0; i < 3; i++) {
381 GUI_Mouse_Hide_Safe();
382
383 GUI_DrawText_Wrapper(string, left, top, fgColourSelected, bgColour, 0x22);
384 Timer_Sleep(2);
385
386 GUI_DrawText_Wrapper(string, left, top, fgColourNormal, bgColour, 0x22);
387 GUI_Mouse_Show_Safe();
388 Timer_Sleep(2);
389 }
390}
391
392static bool GameLoop_IsInRange(uint16 x, uint16 y, uint16 minX, uint16 minY, uint16 maxX, uint16 maxY)
393{

Callers 1

GameLoop_HandleEventsFunction · 0.85

Calls 4

GUI_Mouse_Hide_SafeFunction · 0.85
GUI_DrawText_WrapperFunction · 0.85
Timer_SleepFunction · 0.85
GUI_Mouse_Show_SafeFunction · 0.85

Tested by

no test coverage detected