Forest fire: Difference between revisions
m
→{{header|Phix}}: IupCloseOnEscape no longer needed
(Updated to compile with Nim 1.4. Some formatting and case changes.) |
m (→{{header|Phix}}: IupCloseOnEscape no longer needed) |
||
Line 5,984:
IupSetAttribute(dlg, "TITLE", TITLE)
IupSetAttribute(dlg, "MAXSIZE", "800x400") -- (too slow any bigger)
IupSetCallback(canvas, "ACTION", Icallback("redraw_cb"))
hTimer = IupTimer(Icallback("timer_cb"), 100)
IupSetAttribute(canvas, "RASTERSIZE", NULL) -- release min limitation▼
IupShow(dlg)
▲ IupSetAttribute(canvas, "RASTERSIZE", NULL) -- release min limitation
IupMainLoop()
IupClose()
|