Le 06/04/2012 12:35, Piotr Caban a écrit :
- /* Simulate a 60Hz display */
- time = GetTickCount();
- frame_progress = time& 15; /* time % (1000 / 60) */
- if (!frame_progress)
- {
*Scanline = 0;
return DDERR_VERTICALBLANKINPROGRESS;
- }
- /* convert frame_progress to estimated scan line */
- lines = mode.height / 15;
- *Scanline = (frame_progress - 1) * lines + time % lines; return DD_OK; }
Is time % lines here is to generate a random values (sort of noise) ?