ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/mintv/mintv.cpp
(Generate patch)

Comparing mintv/mintv.cpp (file contents):
Revision 1.5 by cebix, 2003-03-07T20:08:37Z vs.
Revision 1.6 by cebix, 2003-03-21T14:59:19Z

# Line 39 | Line 39 | static int grab_width = -1, grab_height;
39   static int image_width, image_height;
40   static int win_width, win_height;
41  
42 < const int PAL_FPS = 50;
43 < const int NTSC_FPS = 60;
42 > const double PAL_FPS = 50.0;
43 > const double NTSC_FPS = 59.94;
44  
45 < static int fps;
45 > static double fps;
46  
47   static int brightness = 50, contrast = 50, color = 50;
48  
# Line 285 | Line 285 | static Boolean work_proc(XtPointer clien
285  
286          now = GetTicks_usec();
287          uint64 elapsed = now - prev;
288 <        int64 delay = 1000000 / fps - (now - prev);
288 >        int64 delay = int64(1000000.0 / fps) - (now - prev);
289   #if LOGGING
290          fprintf(log, "elapsed %Ld usec, delay %Ld usec\n", elapsed, delay);
291   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines