BootManager: Use BControlLook::ComposeIconSize().

Fixes #17909.
This commit is contained in:
Augustin Cavalier
2022-09-28 17:55:10 -04:00
parent 2ac78cc4d6
commit 6191e1b167
+1 -1
View File
@@ -75,7 +75,7 @@ DriveItem::DriveItem(const BDiskDevice& device, const BootMenuList& menus)
else
fName = B_TRANSLATE_COMMENT("Hard Drive", "Default disk name");
fIcon = new BBitmap(BRect(0, 0, B_LARGE_ICON - 1, B_LARGE_ICON - 1),
fIcon = new BBitmap(BRect(BPoint(0, 0), be_control_look->ComposeIconSize(B_LARGE_ICON)),
B_RGBA32);
if (device.GetIcon(fIcon, B_LARGE_ICON) != B_OK)
memset(fIcon->Bits(), 0, fIcon->BitsLength());