summaryrefslogtreecommitdiffstats
path: root/base/gfx/native_theme.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/gfx/native_theme.cc')
-rw-r--r--base/gfx/native_theme.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/gfx/native_theme.cc b/base/gfx/native_theme.cc
index 65f1914..7fdc459e 100644
--- a/base/gfx/native_theme.cc
+++ b/base/gfx/native_theme.cc
@@ -82,7 +82,7 @@ HRESULT NativeTheme::PaintButton(HDC hdc,
// Draw it manually.
// All pressed states have both low bits set, and no other states do.
- const bool focused = ((state_id & TS_CHECKED) == TS_CHECKED);
+ const bool focused = ((state_id & ETS_FOCUSED) == ETS_FOCUSED);
const bool pressed = ((state_id & PBS_PRESSED) == PBS_PRESSED);
if ((BP_PUSHBUTTON == part_id) && (pressed || focused)) {
// BP_PUSHBUTTON has a focus rect drawn around the outer edge, and the