Chromium Code Reviews

Unified Diff: gfx/canvas_skia_win.cc

Issue 3083022: Rework gfx::Font by moving platform-specific code into inner classes.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « gfx/canvas_skia_mac.mm ('k') | gfx/font.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gfx/canvas_skia_win.cc
===================================================================
--- gfx/canvas_skia_win.cc (revision 55911)
+++ gfx/canvas_skia_win.cc (working copy)
@@ -163,7 +163,7 @@
RECT r = { 0, 0, *width, *height };
HDC dc = GetDC(NULL);
- HFONT old_font = static_cast<HFONT>(SelectObject(dc, font.hfont()));
+ HFONT old_font = static_cast<HFONT>(SelectObject(dc, font.GetNativeFont()));
DoDrawText(dc, clamped_string, &r,
ComputeFormatFlags(flags, clamped_string) | DT_CALCRECT);
SelectObject(dc, old_font);
@@ -212,7 +212,7 @@
const gfx::Font& font,
const SkColor& color,
int x, int y, int w, int h, int flags) {
- DrawStringInt(text, font.hfont(), color, x, y, w, h, flags);
+ DrawStringInt(text, font.GetNativeFont(), color, x, y, w, h, flags);
}
// Checks each pixel immediately adjacent to the given pixel in the bitmap. If
« no previous file with comments | « gfx/canvas_skia_mac.mm ('k') | gfx/font.h » ('j') | no next file with comments »

Powered by Google App Engine