From ed2ab55034078da1c09073a5cb1cd9de35d3afe8 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 5 May 2022 20:39:14 +0200 Subject: [PATCH] Remove line ending spaces --- src/raudio.c | 12 ++++++------ src/raymath.h | 20 ++++++++++---------- src/rcore.c | 6 +++--- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/raudio.c b/src/raudio.c index 9b83afd7f..aae9ba87e 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -314,7 +314,7 @@ typedef enum { // Audio buffer struct struct rAudioBuffer { ma_data_converter converter; // Audio data converter - + AudioCallback callback; // Audio buffer callback for buffer filling on audio threads rAudioProcessor *processor; // Audio processor @@ -338,7 +338,7 @@ struct rAudioBuffer { rAudioBuffer *prev; // Previous audio buffer on the list }; -// Audio processor struct +// Audio processor struct // NOTE: Useful to apply effects to an AudioBuffer struct rAudioProcessor { AudioCallback process; // Processor callback function @@ -566,14 +566,14 @@ AudioBuffer *LoadAudioBuffer(ma_format format, ma_uint32 channels, ma_uint32 sam audioBuffer->volume = 1.0f; audioBuffer->pitch = 1.0f; audioBuffer->pan = 0.5f; - + audioBuffer->callback = NULL; audioBuffer->processor = NULL; audioBuffer->playing = false; audioBuffer->paused = false; audioBuffer->looping = false; - + audioBuffer->usage = usage; audioBuffer->frameCursorPos = 0; audioBuffer->sizeInFrames = sizeInFrames; @@ -2119,10 +2119,10 @@ static ma_uint32 ReadAudioBufferFramesInInternalFormat(AudioBuffer *audioBuffer, { audioBuffer->callback(framesOut, frameCount); audioBuffer->framesProcessed += frameCount; - + return frameCount; } - + ma_uint32 subBufferSizeInFrames = (audioBuffer->sizeInFrames > 1)? audioBuffer->sizeInFrames/2 : audioBuffer->sizeInFrames; ma_uint32 currentSubBufferIndex = audioBuffer->frameCursorPos/subBufferSizeInFrames; diff --git a/src/raymath.h b/src/raymath.h index 22814cceb..abe435452 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -357,16 +357,16 @@ RMAPI Vector2 Vector2Normalize(Vector2 v) // Transforms a Vector2 by a given Matrix RMAPI Vector2 Vector2Transform(Vector2 v, Matrix mat) { - Vector2 result = { 0 }; + Vector2 result = { 0 }; - float x = v.x; - float y = v.y; - float z = 0; + float x = v.x; + float y = v.y; + float z = 0; - result.x = mat.m0*x + mat.m4*y + mat.m8*z + mat.m12; - result.y = mat.m1*x + mat.m5*y + mat.m9*z + mat.m13; + result.x = mat.m0*x + mat.m4*y + mat.m8*z + mat.m12; + result.y = mat.m1*x + mat.m5*y + mat.m9*z + mat.m13; - return result; + return result; } // Calculate linear interpolation between two vectors @@ -991,17 +991,17 @@ RMAPI Vector3 Vector3Refract(Vector3 v, Vector3 n, float r) float dot = v.x*n.x + v.y*n.y + v.z*n.z; float d = 1.0f - r*r*(1.0f - dot*dot); - + if (d >= 0.0f) { d = sqrtf(d); v.x = r*v.x - (r*dot + d)*n.x; v.y = r*v.y - (r*dot + d)*n.y; v.z = r*v.z - (r*dot + d)*n.z; - + result = v; } - + return result; } diff --git a/src/rcore.c b/src/rcore.c index e31e22978..e2cbf6cae 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -754,7 +754,7 @@ void InitWindow(int width, int height, const char *title) #endif if ((title != NULL) && (title[0] != 0)) CORE.Window.title = title; - + // Initialize global input state memset(&CORE.Input, 0, sizeof(CORE.Input)); CORE.Input.Keyboard.exitKey = KEY_ESCAPE; @@ -1184,7 +1184,7 @@ void ToggleFullscreen(void) int monitorCount = 0; int monitorIndex = GetCurrentMonitor(); - GLFWmonitor **monitors = glfwGetMonitors(&monitorCount); + GLFWmonitor **monitors = glfwGetMonitors(&monitorCount); // Use current monitor, so we correctly get the display the window is on GLFWmonitor *monitor = (monitorIndex < monitorCount)? monitors[monitorIndex] : NULL; @@ -4875,7 +4875,7 @@ void SwapScreenBuffer(void) result = drmModeRmFB(CORE.Window.fd, CORE.Window.prevFB); if (result != 0) TRACELOG(LOG_ERROR, "DISPLAY: drmModeRmFB() failed with result: %d", result); } - + CORE.Window.prevFB = fb; if (CORE.Window.prevBO) gbm_surface_release_buffer(CORE.Window.gbmSurface, CORE.Window.prevBO);