summaryrefslogtreecommitdiffstats
path: root/gfx/native_theme_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/native_theme_win.cc')
-rw-r--r--gfx/native_theme_win.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gfx/native_theme_win.cc b/gfx/native_theme_win.cc
index 6d143c9..a363524 100644
--- a/gfx/native_theme_win.cc
+++ b/gfx/native_theme_win.cc
@@ -11,6 +11,7 @@
#include "base/logging.h"
#include "base/scoped_handle.h"
+#include "base/win/scoped_hdc.h"
#include "base/win/windows_version.h"
#include "gfx/gdi_util.h"
#include "gfx/rect.h"
@@ -189,7 +190,7 @@ HRESULT NativeTheme::PaintMenuArrow(ThemeName theme,
// are needed for RTL locales on Vista. So use a memory DC and mirror
// the region with GDI's StretchBlt.
Rect r(*rect);
- ScopedHDC mem_dc(CreateCompatibleDC(hdc));
+ base::win::ScopedHDC mem_dc(CreateCompatibleDC(hdc));
ScopedBitmap mem_bitmap(CreateCompatibleBitmap(hdc, r.width(),
r.height()));
HGDIOBJ old_bitmap = SelectObject(mem_dc, mem_bitmap);
@@ -755,7 +756,7 @@ HRESULT NativeTheme::PaintFrameControl(HDC hdc,
if (mask_bitmap == NULL)
return E_OUTOFMEMORY;
- ScopedHDC bitmap_dc(CreateCompatibleDC(NULL));
+ base::win::ScopedHDC bitmap_dc(CreateCompatibleDC(NULL));
HGDIOBJ org_bitmap = SelectObject(bitmap_dc, mask_bitmap);
RECT local_rect = { 0, 0, width, height };
DrawFrameControl(bitmap_dc, &local_rect, type, state);