summaryrefslogtreecommitdiffstats
path: root/views/controls/textfield/native_textfield_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/textfield/native_textfield_win.cc')
-rw-r--r--views/controls/textfield/native_textfield_win.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/controls/textfield/native_textfield_win.cc b/views/controls/textfield/native_textfield_win.cc
index be1a0bae..fc4ad8b 100644
--- a/views/controls/textfield/native_textfield_win.cc
+++ b/views/controls/textfield/native_textfield_win.cc
@@ -226,7 +226,8 @@ void NativeTextfieldWin::UpdateReadOnly() {
void NativeTextfieldWin::UpdateFont() {
SendMessage(m_hWnd, WM_SETFONT,
- reinterpret_cast<WPARAM>(textfield_->font().hfont()), TRUE);
+ reinterpret_cast<WPARAM>(textfield_->font().GetNativeFont()),
+ TRUE);
// Setting the font blows away any text color we've set, so reset it.
UpdateTextColor();
}