Skip to content

Commit

Permalink
BootManager: Use BControlLook::ComposeIconSize().
Browse files Browse the repository at this point in the history
Fixes #17909.
  • Loading branch information
waddlesplash committed Sep 28, 2022
1 parent 2ac78cc commit 6191e1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/bootmanager/DrivesPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 6191e1b

Please sign in to comment.