Fix windows shutdown.
This commit is contained in:
@ -33,7 +33,6 @@ internals
|
||||
." CHAR: " last-char . cr
|
||||
then
|
||||
)
|
||||
|
||||
0 to color 0 0 width height box
|
||||
g{
|
||||
vertical-flip
|
||||
@ -42,7 +41,6 @@ internals
|
||||
0 0 640 480 box
|
||||
$ff7700 to color
|
||||
0 0 400 300 box
|
||||
|
||||
g{
|
||||
mouse-x mouse-y screen>g translate
|
||||
LEFT-BUTTON pressed? if $ccccff else $ffccff then to color
|
||||
|
||||
@ -65,10 +65,6 @@ cell allocate throw to backbuffer
|
||||
;
|
||||
|
||||
: GrfWindowProc { hwnd msg w l }
|
||||
WM_QUIT msg = if
|
||||
FINISHED to event
|
||||
0 exit
|
||||
then
|
||||
WM_DESTROY msg = if
|
||||
0 PostQuitMessage
|
||||
0 exit
|
||||
@ -165,6 +161,10 @@ also windows
|
||||
event FINISHED = if exit then
|
||||
IDLE to event
|
||||
msgbuf NULL 0 0 PM_REMOVE PeekMessageA if
|
||||
WM_QUIT msgbuf ->message @ = if
|
||||
FINISHED to event
|
||||
exit
|
||||
then
|
||||
msgbuf TranslateMessage drop
|
||||
msgbuf DispatchMessageA drop
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user