Commit 925a38d9 authored by Kieran Clancy's avatar Kieran Clancy Committed by Alexandre Julliard

Fix vertical text alignment in static controls.

parent b904e252
...@@ -500,11 +500,11 @@ static void STATIC_PaintTextfn( HWND hwnd, HDC hdc, DWORD style ) ...@@ -500,11 +500,11 @@ static void STATIC_PaintTextfn( HWND hwnd, HDC hdc, DWORD style )
break; break;
case SS_SIMPLE: case SS_SIMPLE:
wFormat = DT_LEFT | DT_SINGLELINE | DT_VCENTER; wFormat = DT_LEFT | DT_SINGLELINE;
break; break;
case SS_LEFTNOWORDWRAP: case SS_LEFTNOWORDWRAP:
wFormat = DT_LEFT | DT_EXPANDTABS | DT_VCENTER; wFormat = DT_LEFT | DT_EXPANDTABS;
break; break;
default: default:
...@@ -513,8 +513,8 @@ static void STATIC_PaintTextfn( HWND hwnd, HDC hdc, DWORD style ) ...@@ -513,8 +513,8 @@ static void STATIC_PaintTextfn( HWND hwnd, HDC hdc, DWORD style )
if (style & SS_NOPREFIX) if (style & SS_NOPREFIX)
wFormat |= DT_NOPREFIX; wFormat |= DT_NOPREFIX;
if (style & SS_CENTERIMAGE) if ((style & SS_CENTERIMAGE) && (style & SS_TYPEMASK) != SS_SIMPLE)
wFormat |= DT_VCENTER; wFormat |= DT_SINGLELINE | DT_VCENTER;
if ((hFont = (HFONT)GetWindowLongPtrW( hwnd, HFONT_GWL_OFFSET ))) SelectObject( hdc, hFont ); if ((hFont = (HFONT)GetWindowLongPtrW( hwnd, HFONT_GWL_OFFSET ))) SelectObject( hdc, hFont );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment