[client,sdl] fix cursor surface creation

* Pass the pixel width and height to SDL_CreateSurface
* Pass display scaled hotspot to SDL_CreateColorCursor
This commit is contained in:
Armin Novak
2026-02-14 10:03:23 +01:00
parent 3503be620a
commit 52cd988410

View File

@@ -135,7 +135,7 @@ bool sdl_Pointer_Set_Process(SdlContext* sdl)
sdl_Pointer_Clear(ptr);
ptr->image =
SDL_CreateSurface(static_cast<int>(pos.w), static_cast<int>(pos.h), sdl->pixelFormat());
SDL_CreateSurface(static_cast<int>(orig.w), static_cast<int>(orig.h), sdl->pixelFormat());
if (!ptr->image)
{
WLog_Print(sdl->getWLog(), WLOG_ERROR, "SDL_CreateSurface failed");