X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8ed57d9312ecf5ad792f011e2384a86b92001c55..524bf39144b894ebc489d599a99272540941debd:/src/msw/button.cpp diff --git a/src/msw/button.cpp b/src/msw/button.cpp index 2d2d82f1ab..849eef8dbd 100644 --- a/src/msw/button.cpp +++ b/src/msw/button.cpp @@ -30,7 +30,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl) #endif -#define BUTTON_HEIGHT_FACTOR (EDIT_CONTROL_FACTOR * 1.1) +#define BUTTON_HEIGHT_FROM_CHAR_HEIGHT(cy) (11*EDIT_HEIGHT_FROM_CHAR_HEIGHT(cy)/10) // Buttons @@ -135,7 +135,7 @@ void wxButton::SetSize(int x, int y, int width, int height, int sizeFlags) actualHeight = hh; else if (height == -1) { - actualHeight = (int)(cyf*BUTTON_HEIGHT_FACTOR) ; + actualHeight = BUTTON_HEIGHT_FROM_CHAR_HEIGHT(cyf); } MoveWindow((HWND) GetHWND(), x1, y1, actualWidth, actualHeight, TRUE);