Media: add offset to inactive sound card.

fixes #14522.

Change-Id: Ib1c43b63cc43d0b66e5415fbbc42cbc821a25087
Reviewed-on: https://review.haiku-os.org/593
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Jérôme Duval
2018-09-29 17:25:34 +00:00
committed by waddlesplash
parent 42b6e5279f
commit e4ae6cb42f
+3 -2
View File
@@ -98,8 +98,9 @@ struct MediaListItem::Renderer {
iconFrame = MediaIcons::IconRectAt(iconFrame.RightTop() + BPoint(1, 0));
if (fDoubleInsets && fPrimaryIcon) {
onto->DrawBitmap(fPrimaryIcon, iconFrame);
if (fDoubleInsets) {
if (fPrimaryIcon != NULL)
onto->DrawBitmap(fPrimaryIcon, iconFrame);
point.x = iconFrame.right + 1;
}