Compile fix: replaced Uint8 by uint8.

This commit is contained in:
folkert van heusden 2024-06-18 11:22:16 +02:00
parent aea2634940
commit a944a4bc6d
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -77,8 +77,8 @@ static uint32 ncolors = 0, size_colors = 0;
static uint32 *surface = NULL;
static uint32 ws_palette[2]; /* Monochrome palette */
typedef struct cursor {
Uint8 *data;
Uint8 *mask;
uint8 *data;
uint8 *mask;
int width;
int height;
int hot_x;
@ -310,8 +310,8 @@ static const char *cross[] = {
static CURSOR *ws_create_cursor(const char *image[])
{
int byte, bit, row, col;
Uint8 *data = NULL;
Uint8 *mask = NULL;
uint8 *data = NULL;
uint8 *mask = NULL;
char black, white, transparent;
CURSOR *result = NULL;
int width, height, colors, cpp;
@ -325,8 +325,8 @@ if ((cpp != 1) || (0 != width%8) || (colors != 3))
black = image[1][0];
white = image[2][0];
transparent = image[3][0];
data = (Uint8 *)calloc (1, (width / 8) * height);
mask = (Uint8 *)calloc (1, (width / 8) * height);
data = (uint8 *)calloc (1, (width / 8) * height);
mask = (uint8 *)calloc (1, (width / 8) * height);
if (!data || !mask) {
free (data);
free (mask);