Commit c8db18bd authored by Ernestas Kulik's avatar Ernestas Kulik 🦑

rr-config: cast mode id to uint32_t

In some places it’s used as an unsigned int, in other cases it’s signed,
so this just casts the -1 in a ternary expression to uint32_t, which
makes no difference.
parent dececd43
......@@ -1168,7 +1168,7 @@ crtc_assignment_apply (CrtcAssignment *assign, gboolean persistent, GError **err
g_variant_builder_add (&crtc_builder, "(uiiiuaua{sv})",
gnome_rr_crtc_get_id (crtc),
info->mode ?
gnome_rr_mode_get_id (info->mode) : -1,
gnome_rr_mode_get_id (info->mode) : (guint32) -1,
info->x,
info->y,
rotation_to_transform (info->rotation),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment