gtk: initialize canvas backing to white

This commit is contained in:
Matthew Flatt 2010-11-07 07:16:12 -07:00
parent fe208c63bd
commit 23908c2372

View File

@ -38,6 +38,12 @@
w
h))
;; initialize bitmap to white:
(let ([cr (cairo_create s)])
(cairo_set_source_rgba cr 1.0 1.0 1.0 1.0)
(cairo_paint cr)
(cairo_destroy cr))
;; `get-gdk-pixmap' and `install-gl-context' are
;; localized in "gl-context.rkt"
(define/public (get-gdk-pixmap) pixmap)