From 6191e1b167184f46cc1cd9f06512143ac17dc204 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 28 Sep 2022 17:55:10 -0400 Subject: [PATCH] BootManager: Use BControlLook::ComposeIconSize(). Fixes #17909. --- src/apps/bootmanager/DrivesPage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/bootmanager/DrivesPage.cpp b/src/apps/bootmanager/DrivesPage.cpp index 1bb9acfbee..d36d4b56dd 100644 --- a/src/apps/bootmanager/DrivesPage.cpp +++ b/src/apps/bootmanager/DrivesPage.cpp @@ -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());