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

Unified Diff: trunk/src/ui/views/controls/menu/menu_win.cc

Issue 24262008: Revert 224473 "Remove dependency on ui::ScaleFactor from ui/gfx" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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
Index: trunk/src/ui/views/controls/menu/menu_win.cc
===================================================================
--- trunk/src/ui/views/controls/menu/menu_win.cc (revision 224498)
+++ trunk/src/ui/views/controls/menu/menu_win.cc (working copy)
@@ -183,7 +183,8 @@
// Draw the icon after the label, otherwise it would be covered
// by the label.
- gfx::ImageSkiaRep icon_image_rep = data->icon.GetRepresentation(1.0f);
+ gfx::ImageSkiaRep icon_image_rep =
+ data->icon.GetRepresentation(ui::SCALE_FACTOR_100P);
if (data->icon.width() != 0 && data->icon.height() != 0) {
gfx::Canvas canvas(icon_image_rep, false);
skia::DrawToNativeContext(
« no previous file with comments | « trunk/src/ui/views/controls/glow_hover_controller.cc ('k') | trunk/src/ui/views/controls/menu/native_menu_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698