Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Compile fix: replaced Uint8 by uint8." #402

Merged
merged 1 commit into from
Jun 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions display/sim_ws.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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);
Expand Down
Loading