win32: fix(?) printing page-size calculation when in 100*mm
Windows provide page metrics in either 1000ths of inches or 100ths of millimeters. I think Racket's calculation was wrong in the mm case. original commit: 4f75350bf3b8e45ebe8c92388ffa83855e56c5aa
This commit is contained in:
parent
7927d529d4
commit
26e6d12ef9
|
@ -168,7 +168,7 @@
|
|||
(let ([scale (if (zero? (bitwise-and (PAGESETUPDLG-Flags page-setup)
|
||||
PSD_INTHOUSANDTHSOFINCHES))
|
||||
;; 100ths of mm
|
||||
(/ SCREEN-DPI (* 10.0 2.54))
|
||||
(/ SCREEN-DPI (* 1000.0 2.54))
|
||||
;; 1000ths of in
|
||||
(/ SCREEN-DPI 1000.0))]
|
||||
[r (PAGESETUPDLG-rtMargin page-setup)]
|
||||
|
|
Loading…
Reference in New Issue
Block a user