Fix SDL2 crash when creating cursor

Enfoiré de REMqb
This commit is contained in:
Jérôme Leclercq 2020-11-12 16:28:33 +01:00
parent 8e6b4cc673
commit af55ecc2a5
1 changed files with 2 additions and 2 deletions

View File

@ -24,9 +24,9 @@ namespace Nz
m_iconImage.GetWidth(), m_iconImage.GetWidth(),
m_iconImage.GetHeight(), m_iconImage.GetHeight(),
32, 32,
32 * m_iconImage.GetWidth(), 4 * m_iconImage.GetWidth(),
SDL_PIXELFORMAT_BGRA8888 SDL_PIXELFORMAT_BGRA8888
); );
if (!m_icon) if (!m_icon)
{ {