From d8d13e238dcdc83dd3c0098ec4d9dbbe51e357ac Mon Sep 17 00:00:00 2001 From: KidawaGH <117409298+KidawaGH@users.noreply.github.com> Date: Thu, 3 Nov 2022 23:19:31 +0100 Subject: [PATCH] Fixed GetFPS return type GetFPS function now returns an int32 to mirror C version of raylib (https://github.com/raysan5/raylib/blob/master/src/rcore.c) --- raylib/rcore.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raylib/rcore.go b/raylib/rcore.go index f2f0685..af67927 100644 --- a/raylib/rcore.go +++ b/raylib/rcore.go @@ -478,9 +478,9 @@ func SetTargetFPS(fps int32) { } // GetFPS - Returns current FPS -func GetFPS() float32 { +func GetFPS() int32 { ret := C.GetFPS() - v := (float32)(ret) + v := (int32)(ret) return v }