--- mintv/mintv.cpp 2003/03/07 20:08:37 1.5 +++ mintv/mintv.cpp 2003/03/21 14:59:19 1.6 @@ -39,10 +39,10 @@ static int grab_width = -1, grab_height; static int image_width, image_height; static int win_width, win_height; -const int PAL_FPS = 50; -const int NTSC_FPS = 60; +const double PAL_FPS = 50.0; +const double NTSC_FPS = 59.94; -static int fps; +static double fps; static int brightness = 50, contrast = 50, color = 50; @@ -285,7 +285,7 @@ static Boolean work_proc(XtPointer clien now = GetTicks_usec(); uint64 elapsed = now - prev; - int64 delay = 1000000 / fps - (now - prev); + int64 delay = int64(1000000.0 / fps) - (now - prev); #if LOGGING fprintf(log, "elapsed %Ld usec, delay %Ld usec\n", elapsed, delay); #endif