shithub: cstory

Download patch

ref: f6377ae259b98f2f58350819abec5c988525de59
parent: f156c2db10870b44cb1f132908bb576380eb16b2
author: Clownacy <[email protected]>
date: Tue Apr 7 09:53:45 EDT 2020

Fix SDL2 cursor

--- a/src/Backends/SDL2/Misc.cpp
+++ b/src/Backends/SDL2/Misc.cpp
@@ -96,6 +96,8 @@
 
 	if (cursor_surface_pixels != NULL)
 	{
+		memcpy(cursor_surface_pixels, rgb_pixels, width * height * 3);
+
 		cursor_surface = SDL_CreateRGBSurfaceWithFormatFrom(cursor_surface_pixels, width, height, 0, width * 3, SDL_PIXELFORMAT_RGB24);
 
 		if (cursor_surface != NULL)