From fde7676c922789d075cb9c89311c3ab163585f31 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sun, 24 Nov 2024 14:06:03 +0000 Subject: [PATCH] Fix -Wnarrowing in DrawInfoBox --- Source/control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/control.cpp b/Source/control.cpp index 71770091596..b215f69d548 100644 --- a/Source/control.cpp +++ b/Source/control.cpp @@ -1233,7 +1233,7 @@ void FreeControlPan() void DrawInfoBox(const Surface &out) { - DrawPanelBox(out, { InfoBoxRect.position.x, InfoBoxRect.position.y + PanelPaddingHeight, InfoBoxRect.size.width, InfoBoxRect.size.height }, GetMainPanel().position + Displacement { InfoBoxRect.position.x, InfoBoxRect.position.y }); + DrawPanelBox(out, MakeSdlRect(InfoBoxRect.position.x, InfoBoxRect.position.y + PanelPaddingHeight, InfoBoxRect.size.width, InfoBoxRect.size.height), GetMainPanel().position + Displacement { InfoBoxRect.position.x, InfoBoxRect.position.y }); if (!MainPanelFlag && !trigflag && pcursinvitem == -1 && pcursstashitem == StashStruct::EmptyCell && !SpellSelectFlag && pcurs != CURSOR_HOURGLASS) { InfoString = StringOrView {}; InfoColor = UiFlags::ColorWhite;