From 8eafd6cd04e4d540cbad2ef07f9eb58a297a3b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ximo=20Casta=C3=B1eda?= Date: Sat, 5 Dec 2020 18:59:12 +0100 Subject: [PATCH] GameKit: use more than 1 sec precision ramping Change-Id: I015f116239fad5dd48f7f4509db503dc8f60c0d0 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3468 Reviewed-by: waddlesplash --- src/kits/game/GSUtility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/game/GSUtility.cpp b/src/kits/game/GSUtility.cpp index ee0dd8650c..4db8631c57 100644 --- a/src/kits/game/GSUtility.cpp +++ b/src/kits/game/GSUtility.cpp @@ -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;