debug_server: Make use of BControlLook::ComposeIconSize.

Change-Id: Ic5298f9fff3c0d9c4b3733fa99c43781edfabad7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5842
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Augustin Cavalier
2022-11-29 21:27:52 +00:00
committed by waddlesplash
parent 5f40b96c35
commit b85db63d2b
+2 -4
View File
@@ -6,11 +6,11 @@
#include "DebugWindow.h"
#include <algorithm>
#include <stdio.h>
#include <Button.h>
#include <Catalog.h>
#include <ControlLook.h>
#include <GroupLayout.h>
#include <LayoutBuilder.h>
#include <Locale.h>
@@ -143,7 +143,5 @@ DebugWindow::Go()
BRect
DebugWindow::IconSize()
{
int32 size = std::max((int32)1, ((int32)be_plain_font->Size() + 15) / 16)
* 32 - 1;
return BRect(0, 0, size, size);
return BRect(BPoint(0, 0), be_control_look->ComposeIconSize(32));
}