fix problem with mm printer measurements
This commit is contained in:
parent
b10ad75d11
commit
06e5d7d6c8
|
@ -147,15 +147,13 @@
|
||||||
(let ([scale (if (zero? (bitwise-and (PAGESETUPDLG-Flags page-setup)
|
(let ([scale (if (zero? (bitwise-and (PAGESETUPDLG-Flags page-setup)
|
||||||
PSD_INTHOUSANDTHSOFINCHES))
|
PSD_INTHOUSANDTHSOFINCHES))
|
||||||
;; 100ths of mm
|
;; 100ths of mm
|
||||||
(/ SCREEN-DPI (/ 10.0 2.54))
|
(/ SCREEN-DPI (* 10.0 2.54))
|
||||||
;; 1000ths of in
|
;; 1000ths of in
|
||||||
(/ SCREEN-DPI 1000.0))])
|
(/ SCREEN-DPI 1000.0))])
|
||||||
(values
|
(values
|
||||||
(* scale (POINT-x (PAGESETUPDLG-ptPaperSize page-setup)))
|
(* scale (POINT-x (PAGESETUPDLG-ptPaperSize page-setup)))
|
||||||
(* scale (POINT-y (PAGESETUPDLG-ptPaperSize page-setup))))))
|
(* scale (POINT-y (PAGESETUPDLG-ptPaperSize page-setup))))))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(define/override (get-size) (values page-width page-height))
|
(define/override (get-size) (values page-width page-height))
|
||||||
|
|
||||||
(define start-doc-message #f)
|
(define start-doc-message #f)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user