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

Function GUI_DrawText_Monospace

src/gui/gui.c:3482–3491  ·  view source on GitHub ↗

* Draw a string to the screen using a fixed width for each char. * * @param string The string to draw. * @param left The most left position where to draw the string. * @param top The most top position where to draw the string. * @param fgColour The foreground colour of the text. * @param bgColour The background colour of the text. * @param charWidth The width of a char. */

Source from the content-addressed store, hash-verified

3480 * @param charWidth The width of a char.
3481 */
3482void GUI_DrawText_Monospace(char *string, uint16 left, uint16 top, uint8 fgColour, uint8 bgColour, uint16 charWidth)
3483{
3484 char s[2] = " ";
3485
3486 while (*string != '\0') {
3487 *s = *string++;
3488 GUI_DrawText(s, left, top, fgColour, bgColour);
3489 left += charWidth;
3490 }
3491}
3492
3493void GUI_FactoryWindow_B495_0F30(void)
3494{

Callers 1

GUI_Purchase_ShowInvoiceFunction · 0.85

Calls 1

GUI_DrawTextFunction · 0.85

Tested by

no test coverage detected