Skip to content

Commit

Permalink
Cursor fix on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisd1100 committed May 19, 2023
1 parent da7c2e6 commit b602a68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/unix/linux/x11/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ void MTY_AppSetRelativeMouse(MTY_App *ctx, bool relative)
}
}

static Cursor app_rgba_cursor(Display *display, const uint8_t *rgba, uint32_t width, uint32_t height,
static Cursor app_rgba_cursor(Display *display, const uint32_t *rgba, uint32_t width, uint32_t height,
uint32_t hotX, uint32_t hotY)
{
Cursor cursor = None;
Expand Down Expand Up @@ -944,7 +944,7 @@ void MTY_AppSetPNGCursor(MTY_App *ctx, const void *image, size_t size, uint32_t
{
uint32_t width = 0;
uint32_t height = 0;
uint8_t *rgba = image ? MTY_DecompressImage(image, size, &width, &height) : NULL;
void *rgba = image ? MTY_DecompressImage(image, size, &width, &height) : NULL;

MTY_AppSetRGBACursor(ctx, rgba, width, height, hotX, hotY);

Expand Down
2 changes: 1 addition & 1 deletion src/windows/appw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,7 @@ void MTY_AppSetPNGCursor(MTY_App *ctx, const void *image, size_t size, uint32_t
{
uint32_t width = 0;
uint32_t height = 0;
uint8_t *rgba = image ? MTY_DecompressImage(image, size, &width, &height) : NULL;
void *rgba = image ? MTY_DecompressImage(image, size, &width, &height) : NULL;

MTY_AppSetRGBACursor(ctx, rgba, width, height, hotX, hotY);

Expand Down

0 comments on commit b602a68

Please sign in to comment.