Skip to content

Commit 6b3a42b

Browse files
committed
Fixed windows compilation
1 parent 70a6b8b commit 6b3a42b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/port/ui/Notification.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#include "sounds.h"
99
#include "audio/external.h"
1010

11+
#define MAX(a, b) ((a) > (b) ? (a) : (b))
12+
1113
namespace Notification {
1214

1315
static uint32_t nextId = 0;
@@ -173,7 +175,7 @@ void Window::DrawEnhancedNotification(const Options& notification, ImVec2 basePo
173175

174176
// Calculate vertical offset to center icon with text content
175177
float contentStartY = ImGui::GetCursorPosY();
176-
float iconOffsetY = std::max(0.0f, (totalTextHeight - iconSize) * 0.5f);
178+
float iconOffsetY = MAX(0.0f, (totalTextHeight - iconSize) * 0.5f);
177179

178180
// Position and draw icon
179181
ImGui::SetCursorPos(ImVec2(ImGui::GetCursorPosX(), contentStartY + iconOffsetY));

0 commit comments

Comments
 (0)