diff options
Diffstat (limited to 'views/controls/menu/menu_win.cc')
-rw-r--r-- | views/controls/menu/menu_win.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/views/controls/menu/menu_win.cc b/views/controls/menu/menu_win.cc index bf5cd4a..c4b6635 100644 --- a/views/controls/menu/menu_win.cc +++ b/views/controls/menu/menu_win.cc @@ -188,9 +188,10 @@ class MenuHostWindow : public ui::WindowImpl { gfx::CanvasSkia canvas(data->icon.width(), data->icon.height(), false); canvas.drawColor(SK_ColorBLACK, SkXfermode::kClear_Mode); canvas.DrawBitmapInt(data->icon, 0, 0); - canvas.getTopPlatformDevice().drawToHDC(hDC, lpdis->rcItem.left + - kItemLeftMargin, lpdis->rcItem.top + (lpdis->rcItem.bottom - - lpdis->rcItem.top - data->icon.height()) / 2, NULL); + skia::DrawToNativeContext( + &canvas, hDC, lpdis->rcItem.left + kItemLeftMargin, + lpdis->rcItem.top + (lpdis->rcItem.bottom - lpdis->rcItem.top - + data->icon.height()) / 2, NULL); } } else { |