diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-18 21:49:20 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-18 21:49:20 +0000 |
commit | b5cf844c86b06367280e5bf5b3584c9a284cd10d (patch) | |
tree | bdcc07d666ef0e5c1b99ac8598c9bb0d6be417c4 /printing/image_mac.cc | |
parent | 68c6f395372974da145e57d31974a6f1d1b4fdc5 (diff) | |
download | chromium_src-b5cf844c86b06367280e5bf5b3584c9a284cd10d.zip chromium_src-b5cf844c86b06367280e5bf5b3584c9a284cd10d.tar.gz chromium_src-b5cf844c86b06367280e5bf5b3584c9a284cd10d.tar.bz2 |
Mac printing: Autorotate printed pages so their orientation is the same as the destination page.
BUG=93303,132922
TEST=manual
Review URL: https://chromiumcodereview.appspot.com/10560021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142824 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/image_mac.cc')
-rw-r--r-- | printing/image_mac.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/printing/image_mac.cc b/printing/image_mac.cc index 1ed9e0c..7d45178 100644 --- a/printing/image_mac.cc +++ b/printing/image_mac.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -33,9 +33,10 @@ bool Image::LoadMetafile(const Metafile& metafile) { kCGImageAlphaPremultipliedLast)); DCHECK(bitmap_context.get()); + struct Metafile::MacRenderPageParams params; + params.shrink_to_fit = true; metafile.RenderPage(page_number, bitmap_context, - CGRectMake(0, 0, size_.width(), size_.height()), - true, false, false, false); + CGRectMake(0, 0, size_.width(), size_.height()), params); return true; } |