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)
This commit is contained in:
KidawaGH 2022-11-03 23:19:31 +01:00 committed by GitHub
parent 892ce4892c
commit d8d13e238d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}