HaikuControlLook: Correct drawing of border in menu fields.

Fixes #17903.
This commit is contained in:
Augustin Cavalier 2022-09-09 16:49:07 -04:00
parent e8d394bd51
commit 6021345a33

View File

@ -3006,6 +3006,7 @@ HaikuControlLook::_DrawNonFlatButtonBackground(BView* view, BRect& rect,
view->FillRect(rect, fillGradient); view->FillRect(rect, fillGradient);
} }
void void
HaikuControlLook::_DrawPopUpMarker(BView* view, const BRect& rect, HaikuControlLook::_DrawPopUpMarker(BView* view, const BRect& rect,
const rgb_color& base, uint32 flags) const rgb_color& base, uint32 flags)
@ -3071,7 +3072,10 @@ HaikuControlLook::_DrawMenuFieldBackgroundOutside(BView* view, BRect& rect,
floorf(rightRect.top - spacing)); floorf(rightRect.top - spacing));
BPoint leftBottomCorner(floorf(rightRect.left - spacing), BPoint leftBottomCorner(floorf(rightRect.left - spacing),
floorf(rightRect.bottom + spacing)); floorf(rightRect.bottom + spacing));
view->StrokeLine(leftTopCorner, leftBottomCorner); for (float i = 0; i < spacing; i++) {
view->StrokeLine(leftTopCorner + BPoint(i, 0),
leftBottomCorner + BPoint(i, 0));
}
rect = leftRect; rect = leftRect;
} else { } else {