Custom cursor is not working properly #2

Closed
opened 2025-03-24 08:39:36 +01:00 by Burer · 1 comment
Owner

I tried to load a .bmp image as SDL_Texture and create an SDL_Cursor from it.
On Windows and Linux everything works fine, but in KOS I get one of two options:

If the picture is smaller than 32x32 pixels (16x16, 31x31, etc.), it gets horribly distorted, but still loaded and working.
If it is exactly 32x32 pixels, I get an error in the debug board that the cursor should be 32x32 pixels, and just default SDL cursor is loaded.

I tried to load a .bmp image as SDL_Texture and create an SDL_Cursor from it. On Windows and Linux everything works fine, but in KOS I get one of two options: If the picture is smaller than 32x32 pixels (16x16, 31x31, etc.), it gets horribly distorted, but still loaded and working. If it is exactly 32x32 pixels, I get an error in the debug board that the cursor should be 32x32 pixels, and just default SDL cursor is loaded.
Author
Owner

Fixed with commit ff40403123.

Fixed with commit ff40403123.
Burer closed this issue 2025-03-24 08:39:54 +01:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KolibriOS/SDL2#2
No description provided.