WinBackground Function (ROM Call 0x4)

wingraph.h

void WinBackground (WINDOW *w, short Attr);

Sets the default window background.

WinBackground changes the current default attribute for the background of a window pointed to by w (used to clear the window using WinClr). Note that the background attribute is also used to fill up a newly created area when a window content is scrolled in any direction. Valid values for Attr are:

A_NORMALBlack background
A_REVERSEWhite background
A_XORAll pixels will be reversed during clearing

See WinAttr 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.


Used by: cmd_pause