Fix windows shutdown.

This commit is contained in:
Brad Nelson
2022-02-26 04:21:05 -08:00
parent dc03dbd8d6
commit 267ca41574
2 changed files with 4 additions and 6 deletions

View File

@ -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

View File

@ -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