gdk/directfb: event times from the 64-bit wall clock instead of the GTimeVal, whose glong ends in 2038 on 32-bit systems

This commit is contained in:
Daemonratte 2026-10-17 13:51:51 +02:00
commit e5425116ec
No known key found for this signature in database

View file

@ -366,11 +366,9 @@ gdk_event_send_client_message_for_display (GdkDisplay *display,
guint32
gdk_directfb_get_time (void)
{
GTimeVal tv;
g_get_current_time (&tv);
return (guint32) tv.tv_sec * 1000 + tv.tv_usec / 1000;
/* milliseconds of the wall clock, as before, from the 64-bit time
* instead of the GTimeVal whose glong ends in 2038 on 32-bit systems */
return (guint32) (g_get_real_time () / 1000);
}
void