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