HaikuControlLook: Correct drawing of border in menu fields.
Fixes #17903.
This commit is contained in:
parent
e8d394bd51
commit
6021345a33
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user