diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/PlatWin.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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++; } |