ScrRectFill Function (ROM Call 0x189)

graph.h

void ScrRectFill (const SCR_RECT *rect, const SCR_RECT *clip, short Attr);

Draws a filled rectangle.

ScrRectFill draws a filled rectangle given by SCR_RECT structure rect, using the attribute Attr. The rectangle will be clipped at the boundaries of the area given by parameter clip. See SetCurClip for more info about clipping areas. Supported attributes are:

A_NORMALFill with black pixels
A_REVERSEFill with white pixels
A_XORAll pixels in the rectangle will be reversed

FillLines2 is more complicated and slower function than ScrRectFill, but it supports many more attributes. See SetCurAttr for more info about attributes.

Note: TI said that attribute A_SHADED (set to a pattern of pixels on and off) is also supported, but it didn't work when I tried it; at least, it does not work on AMS 1.00.


Uses: DrawLine
Used by: ScrRectScroll, ScrRectShift, MenuEnd, MenuKey, MenuOff, MenuOn, MenuTopRedef, MenuTopSelect, UpdateWindows, DrawWinBorder, WinClr, WinFill, ROM Call 0x3EA, ROM Call 0x421