Media: add offset to inactive sound card.

fixes #14522.

Change-Id: Ib1c43b63cc43d0b66e5415fbbc42cbc821a25087
Reviewed-on: https://review.haiku-os.org/593
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Jérôme Duval 2018-09-25 18:13:44 +02:00 committed by waddlesplash
parent 42b6e5279f
commit e4ae6cb42f
1 changed files with 3 additions and 2 deletions

View File

@ -98,8 +98,9 @@ struct MediaListItem::Renderer {
iconFrame = MediaIcons::IconRectAt(iconFrame.RightTop() + BPoint(1, 0)); iconFrame = MediaIcons::IconRectAt(iconFrame.RightTop() + BPoint(1, 0));
if (fDoubleInsets && fPrimaryIcon) { if (fDoubleInsets) {
onto->DrawBitmap(fPrimaryIcon, iconFrame); if (fPrimaryIcon != NULL)
onto->DrawBitmap(fPrimaryIcon, iconFrame);
point.x = iconFrame.right + 1; point.x = iconFrame.right + 1;
} }