Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5087)

Unified Diff: chrome/browser/printing/printed_document.cc

Issue 1954: Two minor fixes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/printing/win_printing_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/printed_document.cc
===================================================================
--- chrome/browser/printing/printed_document.cc (revision 2056)
+++ chrome/browser/printing/printed_document.cc (working copy)
@@ -129,7 +129,9 @@
// Print the header and footer.
int base_font_size = ChromeFont().height();
- int new_font_size = ConvertUnit(10, 72, immutable_.settings_.dpi());
+ int new_font_size = ConvertUnit(10,
+ immutable_.settings_.desired_dpi,
+ immutable_.settings_.dpi());
DCHECK_GT(new_font_size, base_font_size);
ChromeFont font(ChromeFont().DeriveFont(new_font_size - base_font_size));
HGDIOBJ old_font = SelectObject(context, font.hfont());
« no previous file with comments | « no previous file | chrome/browser/printing/win_printing_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698