[haiku-commits] Re: r40098 - in haiku/trunk/src/add-ons/screen_savers: . butterfly leaves

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 04 Jan 2011 18:59:36 +0100

On 2011-01-04 at 18:27:55 [+0100], Philippe Houdoin 
<philippe.houdoin@xxxxxxxxx> wrote:
> > I ended up calling it fBase, which I guess is OK.
> 
> Just saw that. No problem with that name.
> 
> > Using system_time()
> > resulted in nothing being drawn. It was orders of magnitude larger
> > than the tv_usec value, which as far as I can tell has a certain
> > range.
> 
> Well, I guess the system_time() returned value would have to be clamped to
> [0 .. 999] and then multiplied as today by 0.01f.
> 
> Not that it does matter a lot, though.

If that's about getting some (pseudo) random value, there're function for 
exactly that purpose.

CU, Ingo

Other related posts: