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:
parent
f74a593f91
commit
e5425116ec
1 changed files with 3 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue