diff --git a/dll/win32/comctl32/button.c b/dll/win32/comctl32/button.c index 37dab409b0..42c8efa999 100644 --- a/dll/win32/comctl32/button.c +++ b/dll/win32/comctl32/button.c @@ -1288,11 +1288,12 @@ static UINT BUTTON_CalcLabelRect(const BUTTON_INFO *infoPtr, HDC hdc, RECT *rc) { case DT_TOP: r.top++; r.bottom++; break; case DT_VCENTER: n = r.bottom - r.top; -#ifdef __REACTOS__ - r.top = rc->top + ((rc->bottom - 1 - rc->top) - n) / 2; -#else r.top = rc->top + ((rc->bottom - rc->top) - n) / 2; -#endif +//#ifdef __REACTOS__ +// r.top = rc->top + ((rc->bottom - 1 - rc->top) - n) / 2; +//#else +// r.top = rc->top + ((rc->bottom - rc->top) - n) / 2; +//#endif r.bottom = r.top + n; break; case DT_BOTTOM: n = r.bottom - r.top; r.bottom = rc->bottom - 1; diff --git a/win32ss/user/user32/controls/button.c b/win32ss/user/user32/controls/button.c index df7fb0e781..4a10a7e830 100644 --- a/win32ss/user/user32/controls/button.c +++ b/win32ss/user/user32/controls/button.c @@ -832,11 +832,12 @@ static UINT BUTTON_CalcLabelRect(HWND hwnd, HDC hdc, RECT *rc) { case DT_TOP: r.top++; r.bottom++; break; case DT_VCENTER: n = r.bottom - r.top; -#ifdef __REACTOS__ - r.top = rc->top + ((rc->bottom - 1 - rc->top) - n) / 2; -#else r.top = rc->top + ((rc->bottom - rc->top) - n) / 2; -#endif +//#ifdef __REACTOS__ +// r.top = rc->top + ((rc->bottom - 1 - rc->top) - n) / 2; +//#else +// r.top = rc->top + ((rc->bottom - rc->top) - n) / 2; +//#endif r.bottom = r.top + n; break; case DT_BOTTOM: n = r.bottom - r.top; r.bottom = rc->bottom - 1;