Skip to content

Commit 6c0e87f

Browse files
committed
improved hidden cursor creation
1 parent 912106d commit 6c0e87f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/events/SDL_mouse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ void SDL_MousePostInit(void)
243243
}
244244
#ifdef __WEBOS__
245245
{
246-
SDL_Surface *surface = SDL_CreateRGBSurfaceWithFormat(0, 1, 1, 32, SDL_PIXELFORMAT_RGBA32);
246+
SDL_Surface *surface = SDL_CreateRGBSurfaceWithFormat(0, 1, 1, 32, SDL_PIXELFORMAT_ARGB8888);
247247
SDL_memset(surface->pixels, 0, (size_t)surface->h * surface->pitch);
248248
mouse->hidden_cursor = SDL_CreateColorCursor(surface, 0, 0);
249249
SDL_FreeSurface(surface);

0 commit comments

Comments
 (0)