Skip to content

Commit 0fbc427

Browse files
committed
Remove trailing spaces
1 parent cb58ca6 commit 0fbc427

File tree

7 files changed

+24
-24
lines changed

7 files changed

+24
-24
lines changed

examples/examples_template.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
3737
10. Have fun!
3838
39-
The following files must be updated when adding a new example,
39+
The following files must be updated when adding a new example,
4040
but it can be automatically done using the raylib provided tool: rexm
4141
So, no worries if just the .c/.png are provided when adding the example.
4242

examples/shaders/shaders_normalmap_rendering.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int main(void)
4949
camera.projection = CAMERA_PERSPECTIVE;
5050

5151
// Load basic normal map lighting shader
52-
Shader shader = LoadShader(TextFormat("resources/shaders/glsl%i/normalmap.vs", GLSL_VERSION),
52+
Shader shader = LoadShader(TextFormat("resources/shaders/glsl%i/normalmap.vs", GLSL_VERSION),
5353
TextFormat("resources/shaders/glsl%i/normalmap.fs", GLSL_VERSION));
5454

5555
// Get some required shader locations

examples/shapes/shapes_bullet_hell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ int main(void)
197197
bullets[i].color);
198198
}
199199
}
200-
}
200+
}
201201
else
202202
{
203203
// Draw bullets using DrawCircle(), less performant

examples/shapes/shapes_starfield_effect.c

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ int main(void)
3232
const int screenHeight = 450;
3333

3434
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - starfield effect");
35-
35+
3636
Color bgColor = ColorLerp(DARKBLUE, BLACK, 0.69f);
37-
37+
3838
// Speed at which we fly forward
3939
float speed = 10.0f/9.0f;
40-
40+
4141
// We're either drawing lines or circles
4242
bool drawLines = true;
43-
43+
4444
Vector3 stars[STAR_COUNT] = { 0 };
4545
Vector2 starsScreenPos[STAR_COUNT] = { 0 };
46-
46+
4747
// Setup the stars with a random position
4848
for (int i = 0; i < STAR_COUNT; i++)
4949
{
@@ -65,22 +65,22 @@ int main(void)
6565
if ((int)mouseMove != 0) speed += 2.0f*mouseMove/9.0f;
6666
if (speed < 0.0f) speed = 0.1f;
6767
else if (speed > 2.0f) speed = 2.0f;
68-
68+
6969
// Toggle lines / points with space bar
7070
if (IsKeyPressed(KEY_SPACE)) drawLines = !drawLines;
71-
71+
7272
float dt = GetFrameTime();
73-
for (int i = 0; i < STAR_COUNT; i++)
73+
for (int i = 0; i < STAR_COUNT; i++)
7474
{
7575
// Update star's timer
7676
stars[i].z -= dt*speed;
77-
77+
7878
// Calculate the screen position
7979
starsScreenPos[i] = (Vector2){
8080
screenWidth*0.5f + stars[i].x/stars[i].z,
8181
screenHeight*0.5f + stars[i].y/stars[i].z,
8282
};
83-
83+
8484
// If the star is too old, or offscreen, it dies and we make a new random one
8585
if ((stars[i].z < 0.0f) || (starsScreenPos[i].x < 0) || (starsScreenPos[i].y < 0.0f) ||
8686
(starsScreenPos[i].x > screenWidth) || (starsScreenPos[i].y > screenHeight))
@@ -97,14 +97,14 @@ int main(void)
9797
BeginDrawing();
9898

9999
ClearBackground(bgColor);
100-
100+
101101
for (int i = 0; i < STAR_COUNT; i++)
102102
{
103103
if (drawLines)
104104
{
105105
// Get the time a little while ago for this star, but clamp it
106106
float t = Clamp(stars[i].z + 1.0f/32.0f, 0.0f, 1.0f);
107-
107+
108108
// If it's different enough from the current time, we proceed
109109
if ((t - stars[i].z) > 1e-3)
110110
{
@@ -113,26 +113,26 @@ int main(void)
113113
screenWidth*0.5f + stars[i].x/t,
114114
screenHeight*0.5f + stars[i].y/t,
115115
};
116-
116+
117117
// Draw a line connecting the old point to the current point
118118
DrawLineV(startPos, starsScreenPos[i], RAYWHITE);
119119
}
120120
}
121-
else
121+
else
122122
{
123123
// Make the radius grow as the star ages
124124
float radius = Lerp(stars[i].z, 1.0f, 5.0f);
125-
125+
126126
// Draw the circle
127127
DrawCircleV(starsScreenPos[i], radius, RAYWHITE);
128128
}
129129
}
130-
130+
131131
DrawText(TextFormat("[MOUSE WHEEL] Current Speed: %.0f", 9.0f*speed/2.0f), 10, 40, 20, RAYWHITE);
132132
DrawText(TextFormat("[SPACE] Current draw mode: %s", drawLines ? "Lines" : "Circles"), 10, 70, 20, RAYWHITE);
133-
133+
134134
DrawFPS(10, 10);
135-
135+
136136
EndDrawing();
137137
//----------------------------------------------------------------------------------
138138
}

src/platforms/rcore_desktop_sdl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,7 @@ void EnableCursor(void)
12431243
SDL_SetRelativeMouseMode(SDL_FALSE);
12441244

12451245
#if defined(USING_VERSION_SDL3)
1246-
// NOTE: SDL_ShowCursor() has been split into three functions:
1246+
// NOTE: SDL_ShowCursor() has been split into three functions:
12471247
// SDL_ShowCursor(), SDL_HideCursor(), and SDL_CursorVisible()
12481248
SDL_ShowCursor();
12491249
#else

src/platforms/rcore_desktop_win32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ void ShowCursor(void)
11391139
// Hides mouse cursor
11401140
void HideCursor(void)
11411141
{
1142-
// NOTE: We use SetCursor() instead of ShowCursor() because
1142+
// NOTE: We use SetCursor() instead of ShowCursor() because
11431143
// it makes it easy to only hide the cursor while it's inside the client area
11441144
SetCursor(NULL);
11451145
CORE.Input.Mouse.cursorHidden = true;

src/rcore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ void InitWindow(int width, int height, const char *title)
709709
//--------------------------------------------------------------
710710

711711
// Initialize rlgl default data (buffers and shaders)
712-
// NOTE: CORE.Window.currentFbo.width and CORE.Window.currentFbo.height not used, just stored as globals in rlgl
712+
// NOTE: Current fbo size stored as globals in rlgl for convenience
713713
rlglInit(CORE.Window.currentFbo.width, CORE.Window.currentFbo.height);
714714
isGpuReady = true; // Flag to note GPU has been initialized successfully
715715

0 commit comments

Comments
 (0)