gpu-kms: Fix mode ID type

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1488>
This commit is contained in:
Jonas Ådahl 2020-07-13 21:29:18 +02:00 committed by Marge Bot
parent d3abaf46a1
commit e15bb68d8f

View File

@ -399,7 +399,7 @@ init_modes (MetaGpuKms *gpu_kms)
GList *modes;
GHashTableIter iter;
drmModeModeInfo *drm_mode;
long mode_id;
uint64_t mode_id;
/*
* Gather all modes on all connected connectors.
@ -442,7 +442,7 @@ init_modes (MetaGpuKms *gpu_kms)
{
MetaCrtcModeKms *mode;
mode = meta_crtc_mode_kms_new (drm_mode, (long) mode_id);
mode = meta_crtc_mode_kms_new (drm_mode, mode_id);
modes = g_list_append (modes, mode);
mode_id++;