From a99c000fd90b1fd91c58b4999fec95a0833506c4 Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Sun, 19 Jul 2026 18:15:15 -0700 Subject: [PATCH] Avoid Windows max macro in Xbox text renderer --- xbox/native-bios/App.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbox/native-bios/App.cpp b/xbox/native-bios/App.cpp index f2f4eaeb66..9253b21fe0 100644 --- a/xbox/native-bios/App.cpp +++ b/xbox/native-bios/App.cpp @@ -412,7 +412,7 @@ private: ComPtr format; Check(m_dwriteFactory->CreateTextFormat(L"Segoe UI", nullptr, DWRITE_FONT_WEIGHT_SEMI_BOLD, DWRITE_FONT_STYLE_NORMAL, - DWRITE_FONT_STRETCH_NORMAL, std::max(12.0f, m_frameText->size), L"en-us", + DWRITE_FONT_STRETCH_NORMAL, (std::max)(12.0f, m_frameText->size), L"en-us", &format)); const auto text = Wide(m_frameText->value); const auto bounds = D2D1::RectF(m_frameText->x, m_frameText->y, -- 2.51.2