WinBeginPaint Function (ROM Call 0x500)

AMS 2.00 or higher wingraph.h

void WinBeginPaint (WINDOW *w);

Saves the current screen state of given window, and prepares the settings for drawing in the LCD memory.

WinBeginPaint just saves the current screen state in w->savedScrState, executes PortRestore and sets the current font to w->CurFont. So, emulating it on AMS 1.xx is easy.
WinBeginPaint is always paired with WinEndPaint which restores the screen state.
WinBeginPaint is commonly used to respond a CM_ACTIVATE message.


Uses: FontSetSys, PortRestore, SaveScrState
Used by: EV_quit, EV_defaultHandler


See also: WinEndPaint