From: <sv...@op...> - 2024-11-29 10:59:07
|
Author: manx Date: Fri Nov 29 11:58:55 2024 New Revision: 22340 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22340 Log: [Ref] Pattern Font: Silence Clang warning with C++20 MPT_USTRING_MODE_WIDE. Modified: trunk/OpenMPT/mptrack/PatternFont.cpp Modified: trunk/OpenMPT/mptrack/PatternFont.cpp ============================================================================== --- trunk/OpenMPT/mptrack/PatternFont.cpp Fri Nov 29 11:57:59 2024 (r22339) +++ trunk/OpenMPT/mptrack/PatternFont.cpp Fri Nov 29 11:58:55 2024 (r22340) @@ -99,7 +99,7 @@ ::DrawTextA(hDC, &ch, 1, &rect, DT_CENTER | DT_VCENTER | DT_SINGLELINE | DT_NOPREFIX); } -#if MPT_CXX_AT_LEAST(20) +#if MPT_CXX_AT_LEAST(20) && MPT_USTRING_MODE_UTF8 static void DrawChar(HDC hDC, char8_t ch8, int x, int y, int w, int h) { CRect rect(x, y, x + w, y + h); |