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 (xy) 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_NORMALThe character is ORed into the destination
A_REVERSEThe region created by inversing the character replaces the destination
A_REPLACEThe region defined by the character replaces the destination
A_XORThe character is XORed into the destination
A_SHADEDThe 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