Skip to content

Commit

Permalink
improved hidden cursor creation
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Nov 1, 2024
1 parent 912106d commit 6c0e87f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/SDL_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void SDL_MousePostInit(void)
}
#ifdef __WEBOS__
{
SDL_Surface *surface = SDL_CreateRGBSurfaceWithFormat(0, 1, 1, 32, SDL_PIXELFORMAT_RGBA32);
SDL_Surface *surface = SDL_CreateRGBSurfaceWithFormat(0, 1, 1, 32, SDL_PIXELFORMAT_ARGB8888);
SDL_memset(surface->pixels, 0, (size_t)surface->h * surface->pitch);
mouse->hidden_cursor = SDL_CreateColorCursor(surface, 0, 0);
SDL_FreeSurface(surface);
Expand Down

0 comments on commit 6c0e87f

Please sign in to comment.