cocoa: fix printing bounds
This commit is contained in:
parent
98822cf1f9
commit
4fc8797df2
|
@ -174,9 +174,10 @@
|
|||
(+ (NSPoint-y (NSRect-origin b))
|
||||
(NSSize-height (NSRect-size b))))
|
||||
page-scaling))
|
||||
(let* ([surface (cairo_quartz_surface_create_for_cg_context cg
|
||||
(inexact->exact (ceiling page-width))
|
||||
(inexact->exact (ceiling page-height)))]
|
||||
(let* ([surface (cairo_quartz_surface_create_for_cg_context
|
||||
cg
|
||||
(inexact->exact (ceiling (/ page-width page-scaling)))
|
||||
(inexact->exact (ceiling (/ page-height page-scaling))))]
|
||||
[cr (cairo_create surface)])
|
||||
(cairo_surface_destroy surface)
|
||||
(let ([dc (make-object (dc-mixin
|
||||
|
|
Loading…
Reference in New Issue
Block a user