Revert "[COMCTL32][USER32] Fix radio button regression (#2146)" (#2753)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Sat, 9 May 2020 02:30:11 +0000 (11:30 +0900)
committerGitHub <noreply@github.com>
Sat, 9 May 2020 02:30:11 +0000 (11:30 +0900)
This reverts commit 2d4d3f5fce0c875d3e714c51de16dfb0cd0a9cd3.

Reverts #2146. I think #2135 (e329e83) and #2146 (2d4d3f5) are my mistakes.
CORE-16552, CORE-16747

dll/win32/comctl32/button.c
win32ss/user/user32/controls/button.c

index db20749..37dab40 100644 (file)
@@ -1211,11 +1211,7 @@ static UINT BUTTON_CalcLabelRect(const BUTTON_INFO *infoPtr, HDC hdc, RECT *rc)
           }
 
           if ((hFont = infoPtr->font)) hPrevFont = SelectObject( hdc, hFont );
-#ifdef __REACTOS__
-          DrawTextW(hdc, text, -1, &r, ((dtStyle | DT_CALCRECT) & ~(DT_VCENTER | DT_BOTTOM)));
-#else
           DrawTextW(hdc, text, -1, &r, dtStyle | DT_CALCRECT);
-#endif
           if (hPrevFont) SelectObject( hdc, hPrevFont );
           heap_free( text );
 #ifdef __REACTOS__
index 6b65c53..df7fb0e 100644 (file)
@@ -773,11 +773,7 @@ static UINT BUTTON_CalcLabelRect(HWND hwnd, HDC hdc, RECT *rc)
           }
 
           if ((hFont = get_button_font( hwnd ))) hPrevFont = SelectObject( hdc, hFont );
-#ifdef __REACTOS__
-          DrawTextW(hdc, text, -1, &r, ((dtStyle | DT_CALCRECT) & ~(DT_VCENTER | DT_BOTTOM)));
-#else
           DrawTextW(hdc, text, -1, &r, dtStyle | DT_CALCRECT);
-#endif
           if (hPrevFont) SelectObject( hdc, hPrevFont );
           HeapFree( GetProcessHeap(), 0, text );
 #ifdef __REACTOS__