ddraw: Improve GetScanLine stub so it's usable for timing related tasks

Christian Costa titan.costa at gmail.com
Fri Apr 6 06:33:59 CDT 2012


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) ?



More information about the wine-devel mailing list