Combining menu state into a single record

This commit is contained in:
Amy Grinn 2024-12-13 15:31:19 -05:00
parent 20948a5955
commit 06a982747e
No known key found for this signature in database
GPG key ID: 6B558BED1DCF3192
2 changed files with 130 additions and 100 deletions

View file

@ -29,6 +29,7 @@
set-text-align!
clear-rect
fill-rect
;; stroke
fill-text
draw-image
restore!
@ -72,6 +73,9 @@
(define-foreign draw-image
"canvas" "drawImage"
(ref extern) (ref extern) f64 f64 f64 f64 f64 f64 f64 f64 -> none)
;; (define-foreign stroke
;; "canvas" "stroke"
;; (ref extern) -> none)
(define-foreign restore!
"canvas" "restore"
(ref extern) -> none)