| DrawChar | Function (ROM Call 0x1A4)

graph.h

void DrawChar (short x, short y, char c, short Attr);

Draws a character.

DrawChar draws a character c at a specific (x, y) location. The following character attributes are supported (the region defined by a character is 8x10 for huge font, 6x8 for large font or nx5 for small font, depending on the current font set by FontSetSys command):

A_NORMAL | The character is ORed into the destination
A_REVERSE | The region created by inversing the character replaces the destination
A_REPLACE | The region defined by the character replaces the destination
A_XOR | The character is XORed into the destination
A_SHADED | The character is masked so that every other pixel is turned off then ORed into the destination

See SetCurAttr command for more general info about attributes.

Uses: EV_runningApp, OO_GetAppAttr, sf_width, TIOS_abs
Used by: DrawFkey, MenuKey, MenuOff, MenuOn, MenuTopRedef, MenuTopSelect, fputchar, ROM Call 0x412, ROM Call 0x421