WinPixSet Function (ROM Call 0x20)

wingraph.h

void WinPixSet (WINDOW *w, short x, short y);

Sets a pixel in a window.

WinPixSet set a pixel at (xy) in the window pointed to by w using the current window attribute (set using WinAttr). The coordinates are relative to the topleft corner of the window (the pixel will not be drawn if the coordinates are out of the window). The following attributes are supported:

A_NORMALDraw a pixel
A_REVERSEErase a pixel
A_XORInvert a pixel


Uses: DrawPix, PortRestore, ROM Call 0x413
Used by: cmd_newpic, cmd_ptchg, cmd_ptoff, cmd_pton, cmd_pxlchg, cmd_pxloff, cmd_pxlon, GD_Pen, gdb_recall, FuncLineFlt, GrAxes, GrLineFlt