BControlLook::GetFrameInsets(): Fix button insets

The button frame is 3 pixels wide, but that includes one pixel that
actually belongs to the background, which is accounted for by
GetBackgroundInsets().
Removes the additional one pixel inset accidentally introduced earlier.
This commit is contained in:
Ingo Weinhold 2013-12-30 04:11:26 +01:00
parent 813c5772c9
commit 87f392c9f0

View File

@ -1947,7 +1947,7 @@ BControlLook::GetFrameInsets(frame_type frameType, uint32 flags, float& _left,
switch (frameType) {
case B_BUTTON_FRAME:
inset = (flags & B_DEFAULT_BUTTON) != 0 ? 6 : 3;
inset = (flags & B_DEFAULT_BUTTON) != 0 ? 5 : 2;
break;
case B_GROUP_FRAME:
case B_MENU_FIELD_FRAME: