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