aboutsummaryrefslogtreecommitdiff
path: root/src/window
diff options
context:
space:
mode:
Diffstat (limited to 'src/window')
-rw-r--r--src/window/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window/window.c b/src/window/window.c
index 0654e85..980e811 100644
--- a/src/window/window.c
+++ b/src/window/window.c
@@ -285,7 +285,7 @@ static void mgl_window_on_resize(mgl_window *self, int width, int height) {
static unsigned long mgl_color_to_x11_pixel(mgl_color color) {
if(color.a == 0)
return 0;
- return (color.r << 16) | (color.g << 8) | color.b;
+ return ((uint32_t)color.a << 24) | ((uint32_t)color.r << 16) | ((uint32_t)color.g << 8) | (uint32_t)color.b;
}
static int mgl_window_init(mgl_window *self, const char *title, const mgl_window_create_params *params, Window existing_window) {