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:
Máximo Castañeda
2020-12-06 18:17:55 +00:00
committed by waddlesplash
parent 10bc5b6e2f
commit 8eafd6cd04
+1 -1
View File
@@ -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;