Annotation of ports/devel/bullet/patches/patch-Extras_glui_glui_list_cpp, Revision 1.1
1.1 ! yason 1: $OpenBSD$
! 2: $NetBSD: patch-aa,v 1.1.1.1 2010/09/03 23:01:47 wiz Exp $
! 3: Avoid using obsolete functions.
! 4:
! 5: --- Extras/glui/glui_list.cpp.orig Sat Nov 13 07:51:07 2010
! 6: +++ Extras/glui/glui_list.cpp Sat Nov 13 07:53:51 2010
! 7: @@ -20,7 +20,7 @@
! 8:
! 9: #include "glui_internal_control.h"
! 10: #include <cmath>
! 11: -#include <sys/timeb.h>
! 12: +#include <sys/time.h>
! 13:
! 14: /****************************** GLUI_List::GLUI_List() **********/
! 15:
! 16: @@ -90,9 +90,9 @@ int GLUI_List::mouse_down_handler( int local_x, int
! 17: {
! 18: int tmp_line;
! 19: unsigned long int ms;
! 20: - timeb time;
! 21: - ftime(&time);
! 22: - ms = time.millitm + (time.time)*1000;
! 23: + struct timeval now;
! 24: + gettimeofday(&now, NULL);
! 25: + ms = now.tv_usec/1000 + now.tv_sec*1000;
! 26:
! 27: tmp_line = find_line( local_x-x_abs, local_y-y_abs-5 );
! 28: if ( tmp_line == -1 ) {
CVSweb