From ade81248c37dcff0b4453d6aa015c5e0737dd578 Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 24 Feb 2026 01:26:07 +0100 Subject: [PATCH] REVIEWED: Right timing --- examples/Makefile | 2 +- examples/Makefile.Web | 4 ++-- examples/models/models_animation_blending.c | 4 ++-- src/platforms/rcore_desktop_glfw.c | 2 +- src/platforms/rcore_desktop_win32.c | 2 +- src/platforms/rcore_drm.c | 2 +- src/platforms/rcore_memory.c | 2 +- src/rcore.c | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/Makefile b/examples/Makefile index 47e1fb47e..ff989a9dd 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -667,7 +667,7 @@ MODELS = \ models/models_animation_blend_custom \ models/models_animation_blending \ models/models_animation_gpu_skinning \ - models/models_animation_timming \ + models/models_animation_timing \ models/models_basic_voxel \ models/models_billboard_rendering \ models/models_bone_socket \ diff --git a/examples/Makefile.Web b/examples/Makefile.Web index b355bc63e..1fa797bf1 100644 --- a/examples/Makefile.Web +++ b/examples/Makefile.Web @@ -645,7 +645,7 @@ MODELS = \ models/models_animation_blend_custom \ models/models_animation_blending \ models/models_animation_gpu_skinning \ - models/models_animation_timming \ + models/models_animation_timing \ models/models_basic_voxel \ models/models_billboard_rendering \ models/models_bone_socket \ @@ -1218,7 +1218,7 @@ models/models_animation_gpu_skinning: models/models_animation_gpu_skinning.c --preload-file models/resources/shaders/glsl100/skinning.vs@resources/shaders/glsl100/skinning.vs \ --preload-file models/resources/shaders/glsl100/skinning.fs@resources/shaders/glsl100/skinning.fs -models/models_animation_timming: models/models_animation_timming.c +models/models_animation_timing: models/models_animation_timing.c $(CC) -o $@$(EXT) $< $(CFLAGS) $(INCLUDE_PATHS) $(LDFLAGS) $(LDLIBS) -D$(PLATFORM) \ --preload-file models/resources/models/gltf/robot.glb@resources/models/gltf/robot.glb diff --git a/examples/models/models_animation_blending.c b/examples/models/models_animation_blending.c index a5d3d4b1d..46577a353 100644 --- a/examples/models/models_animation_blending.c +++ b/examples/models/models_animation_blending.c @@ -199,8 +199,8 @@ int main(void) } // Update progress bars values with current frame for each animation - float animFrameProgress0 = animCurrentFrame0; - float animFrameProgress1 = animCurrentFrame1; + animFrameProgress0 = animCurrentFrame0; + animFrameProgress1 = animCurrentFrame1; //---------------------------------------------------------------------------------- // Draw diff --git a/src/platforms/rcore_desktop_glfw.c b/src/platforms/rcore_desktop_glfw.c index af3e6b6c1..b79d5d629 100644 --- a/src/platforms/rcore_desktop_glfw.c +++ b/src/platforms/rcore_desktop_glfw.c @@ -1782,7 +1782,7 @@ int InitPlatform(void) } //---------------------------------------------------------------------------- - // Initialize timming system + // Initialize timing system //---------------------------------------------------------------------------- InitTimer(); //---------------------------------------------------------------------------- diff --git a/src/platforms/rcore_desktop_win32.c b/src/platforms/rcore_desktop_win32.c index 8cb9645d2..48b644a72 100644 --- a/src/platforms/rcore_desktop_win32.c +++ b/src/platforms/rcore_desktop_win32.c @@ -1655,7 +1655,7 @@ int InitPlatform(void) TRACELOG(LOG_INFO, " > GLSL: %s", "NOT SUPPORTED"); } - // Initialize timming system + // Initialize timing system //---------------------------------------------------------------------------- LARGE_INTEGER time = { 0 }; QueryPerformanceCounter(&time); diff --git a/src/platforms/rcore_drm.c b/src/platforms/rcore_drm.c index 85db9b4e1..619a42256 100644 --- a/src/platforms/rcore_drm.c +++ b/src/platforms/rcore_drm.c @@ -1613,7 +1613,7 @@ int InitPlatform(void) //---------------------------------------------------------------------------- // Initialize timing system //---------------------------------------------------------------------------- - // NOTE: timming system must be initialized before the input events system + // NOTE: timing system must be initialized before the input events system InitTimer(); //---------------------------------------------------------------------------- diff --git a/src/platforms/rcore_memory.c b/src/platforms/rcore_memory.c index 1d69f5ed3..a6fa46ba3 100644 --- a/src/platforms/rcore_memory.c +++ b/src/platforms/rcore_memory.c @@ -55,7 +55,7 @@ //---------------------------------------------------------------------------------- // Types and Structures Definition //---------------------------------------------------------------------------------- -// Platform-specific required data for timming (Win32) +// Platform-specific required data for timing (Win32) #if defined(_WIN32) typedef struct _LARGE_INTEGER { int64_t QuadPart; } LARGE_INTEGER; __declspec(dllimport) int __stdcall QueryPerformanceCounter(LARGE_INTEGER *lpPerformanceCount); diff --git a/src/rcore.c b/src/rcore.c index f1481890b..1090cfc9c 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -1593,7 +1593,7 @@ Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera) } //---------------------------------------------------------------------------------- -// Module Functions Definition: Timming +// Module Functions Definition: Timing //---------------------------------------------------------------------------------- // NOTE: Functions with a platform-specific implementation on rcore_.c