GameKit: use more than 1 sec precision ramping
Change-Id: I015f116239fad5dd48f7f4509db503dc8f60c0d0 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3468 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
10bc5b6e2f
commit
8eafd6cd04
@@ -19,7 +19,7 @@ _gs_ramp*
|
||||
InitRamp(float* value, float set, float frames, bigtime_t duration)
|
||||
{
|
||||
float diff = (set > *value) ? set - *value : *value - set;
|
||||
bigtime_t sec = bigtime_t(duration / 1000000.0);
|
||||
float sec = float(duration) / 1000000.0;
|
||||
float inc = diff * 200;
|
||||
|
||||
_gs_ramp* ramp = new (std::nothrow) _gs_ramp;
|
||||
|
||||
Reference in New Issue
Block a user