win32: tell Cairo when drawing to a printing context
This commit is contained in:
parent
4f292a95c5
commit
559f756374
|
@ -190,7 +190,7 @@
|
|||
[page-no (in-naturals 1)])
|
||||
(when (<= from-page page-no to-page)
|
||||
(StartPage hdc)
|
||||
(let* ([s (cairo_win32_surface_create hdc)]
|
||||
(let* ([s (cairo_win32_printing_surface_create hdc)]
|
||||
[cr (cairo_create s)])
|
||||
(set-point-scale hdc cr)
|
||||
(proc
|
||||
|
|
|
@ -74,6 +74,10 @@
|
|||
(_fun _pointer -> _cairo_surface_t)
|
||||
#:make-fail make-not-available
|
||||
#:wrap (allocator cairo_surface_destroy))
|
||||
(define-cairo cairo_win32_printing_surface_create
|
||||
(_fun _pointer -> _cairo_surface_t)
|
||||
#:make-fail make-not-available
|
||||
#:wrap (allocator cairo_surface_destroy))
|
||||
|
||||
(define-cairo cairo_surface_create_similar
|
||||
(_fun _cairo_surface_t _int _int _int -> _cairo_surface_t))
|
||||
|
|
Loading…
Reference in New Issue
Block a user