From 6ab86acd95c830be779fdddbbc1230e8b73c21bc Mon Sep 17 00:00:00 2001 From: "sanjeevr@chromium.org" Date: Sat, 29 May 2010 07:18:29 +0000 Subject: Changed printer page setup units to be in device co-ordinates (this is pixels on Windows and points on the Mac). Also fixed a bug with Mac dpi calculation. BUG=None. TEST=Test printing on Windows and Mac. Review URL: http://codereview.chromium.org/2351003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48558 0039d316-1c4b-4281-b951-d872f2087c98 --- printing/printed_document_mac.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'printing/printed_document_mac.cc') diff --git a/printing/printed_document_mac.cc b/printing/printed_document_mac.cc index e9bd044..422dacf 100644 --- a/printing/printed_document_mac.cc +++ b/printing/printed_document_mac.cc @@ -25,7 +25,7 @@ void PrintedDocument::RenderPrintedPage( #endif const printing::PageSetup& page_setup( - immutable_.settings_.page_setup_pixels()); + immutable_.settings_.page_setup_device_units()); CGRect target_rect = page_setup.content_area().ToCGRect(); const printing::NativeMetafile* metafile = page.native_metafile(); -- cgit v1.1