From af55ecc2a5bf97b2b876754135ff0189fe1b5a0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Thu, 12 Nov 2020 16:28:33 +0100 Subject: [PATCH] Fix SDL2 crash when creating cursor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enfoiré de REMqb --- src/Nazara/Platform/SDL2/CursorImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Nazara/Platform/SDL2/CursorImpl.cpp b/src/Nazara/Platform/SDL2/CursorImpl.cpp index c9497a2e8..bd4f9ea21 100644 --- a/src/Nazara/Platform/SDL2/CursorImpl.cpp +++ b/src/Nazara/Platform/SDL2/CursorImpl.cpp @@ -24,9 +24,9 @@ namespace Nz m_iconImage.GetWidth(), m_iconImage.GetHeight(), 32, - 32 * m_iconImage.GetWidth(), + 4 * m_iconImage.GetWidth(), SDL_PIXELFORMAT_BGRA8888 - ); + ); if (!m_icon) {