mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user