diff options
author | Neil <nyamatongwe@gmail.com> | 2025-03-28 15:52:44 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-03-28 15:52:44 +1100 |
commit | 3ea626ca65c6dd80a141d478a1da0b7dad56db31 (patch) | |
tree | a9d50b9924a9ab60bbcbdb187b2968f8e7eab3b5 /win32 | |
parent | 2b897e4c4a0cf9d67095b4d4d37d852f61d02667 (diff) | |
download | scintilla-mirror-3ea626ca65c6dd80a141d478a1da0b7dad56db31.tar.gz |
Use constant definition to avoid warning.
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++; } |