From 77145c130fde8144c6184e354751f06b83adade3 Mon Sep 17 00:00:00 2001 From: Corentin Schreiber Date: Fri, 21 Aug 2020 19:44:24 +0100 Subject: [PATCH] Fixed bug of spurious vertical white lines with monochrome cursor --- src/SFML/Window/Unix/CursorImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Window/Unix/CursorImpl.cpp b/src/SFML/Window/Unix/CursorImpl.cpp index 5678c449..4aabffa0 100644 --- a/src/SFML/Window/Unix/CursorImpl.cpp +++ b/src/SFML/Window/Unix/CursorImpl.cpp @@ -107,7 +107,7 @@ bool CursorImpl::loadFromPixelsMonochrome(const Uint8* pixels, Vector2u size, Ve std::size_t packedWidth = (size.x + 7) / 8; std::size_t bytes = packedWidth * size.y; std::vector mask(bytes, 0); // Defines which pixel is opaque (1) or transparent (0). - std::vector data(bytes, 1); // Defines which pixel is white (1) or black (0). + std::vector data(bytes, 0); // Defines which pixel is white (1) or black (0). for (std::size_t j = 0; j < size.y; ++j) {