From 3ea626ca65c6dd80a141d478a1da0b7dad56db31 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 28 Mar 2025 15:52:44 +1100 Subject: Use constant definition to avoid warning. --- win32/PlatWin.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index b93616b77..02f31cc5e 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -548,9 +548,10 @@ public: ::DeleteObject(brush); // Set the alpha values for each pixel in the cursor. + constexpr DWORD opaque = 0xFF000000U; for (int i = 0; i < width*height; i++) { if (*pixels != 0) { - *pixels |= 0xFF000000U; + *pixels |= opaque; } pixels++; } -- cgit v1.2.3