This commit is contained in:
Clownacy 2020-04-24 13:02:51 +01:00
parent 8945ca8275
commit bf8d824b70

View file

@ -196,7 +196,7 @@ void Backend_HideMouse(void)
void Backend_SetWindowIcon(const unsigned char *rgb_pixels, unsigned int width, unsigned int height) void Backend_SetWindowIcon(const unsigned char *rgb_pixels, unsigned int width, unsigned int height)
{ {
// Convert to RGBA, since that's the only think GLFW3 accepts // Convert to RGBA, since that's the only thing GLFW3 accepts
unsigned char *rgba_pixels = (unsigned char*)malloc(width * height * 4); unsigned char *rgba_pixels = (unsigned char*)malloc(width * height * 4);
const unsigned char *rgb_pointer = rgb_pixels; const unsigned char *rgb_pointer = rgb_pixels;
@ -224,7 +224,7 @@ void Backend_SetWindowIcon(const unsigned char *rgb_pixels, unsigned int width,
void Backend_SetCursor(const unsigned char *rgb_pixels, unsigned int width, unsigned int height) void Backend_SetCursor(const unsigned char *rgb_pixels, unsigned int width, unsigned int height)
{ {
// Convert to RGBA, since that's the only think GLFW3 accepts // Convert to RGBA, since that's the only thing GLFW3 accepts
unsigned char *rgba_pixels = (unsigned char*)malloc(width * height * 4); unsigned char *rgba_pixels = (unsigned char*)malloc(width * height * 4);
const unsigned char *rgb_pointer = rgb_pixels; const unsigned char *rgb_pointer = rgb_pixels;