Skip to content

Commit a997048

Browse files
committed
Remove trailing spaces
1 parent be974bb commit a997048

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

examples/examples_list.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# examples must be provided as: <example_category>;<example_name>;<example_stars>;<raylib_created_version>;<raylib_last_update_version>;"<example_author_name>";<author_github_user>
44
#
55
# This list is used as the main reference by [rexm] tool for examples collection validation and management
6-
# New examples must be added to this list and any possible rename must be made on this list first
6+
# New examples must be added to this list and any possible rename must be made on this list first
77
#
88
# WARNING: List is not ordered by example name but by the display order on web
99
#

src/platforms/rcore_desktop_glfw.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ int InitPlatform(void)
13651365

13661366
// Window flags requested before initialization to be applied after initialization
13671367
unsigned int requestedWindowFlags = CORE.Window.flags;
1368-
1368+
13691369
// Check window creation flags
13701370
if ((CORE.Window.flags & FLAG_FULLSCREEN_MODE) > 0) CORE.Window.fullscreen = true;
13711371

@@ -1663,7 +1663,7 @@ int InitPlatform(void)
16631663
int monitorHeight = 0;
16641664
glfwGetMonitorWorkarea(monitor, &monitorX, &monitorY, &monitorWidth, &monitorHeight);
16651665

1666-
// Here CORE.Window.render.width/height should be used instead of
1666+
// Here CORE.Window.render.width/height should be used instead of
16671667
// CORE.Window.screen.width/height to center the window correctly when the high dpi flag is enabled
16681668
int posX = monitorX + (monitorWidth - (int)CORE.Window.render.width)/2;
16691669
int posY = monitorY + (monitorHeight - (int)CORE.Window.render.height)/2;
@@ -1675,7 +1675,7 @@ int InitPlatform(void)
16751675
CORE.Window.position.x = posX;
16761676
CORE.Window.position.y = posY;
16771677
}
1678-
1678+
16791679
// Apply window flags requested previous to initialization
16801680
SetWindowState(requestedWindowFlags);
16811681

src/platforms/rcore_desktop_sdl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ Vector2 GetWindowScaleDPI(void)
11031103
TRACELOG(LOG_WARNING, "GetWindowScaleDPI() not implemented on target platform");
11041104
#else
11051105
scale.x = SDL_GetWindowDisplayScale(platform.window);
1106-
scale.y = scale.x;
1106+
scale.y = scale.x;
11071107
#endif
11081108

11091109
return scale;

src/platforms/rcore_web.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ int InitPlatform(void)
13551355
emscripten_set_blur_callback(GetCanvasId(), platform.handle, 1, EmscriptenFocusCallback);
13561356
emscripten_set_focus_callback(GetCanvasId(), platform.handle, 1, EmscriptenFocusCallback);
13571357
emscripten_set_visibilitychange_callback(NULL, 1, EmscriptenVisibilityChangeCallback);
1358-
1358+
13591359
// WARNING: Below resize code was breaking fullscreen mode for sample games and examples, it needs review
13601360
// Check fullscreen change events(note this is done on the window since most browsers don't support this on #canvas)
13611361
// emscripten_set_fullscreenchange_callback(EMSCRIPTEN_EVENT_TARGET_WINDOW, NULL, 1, EmscriptenResizeCallback);
@@ -1623,7 +1623,7 @@ static void MouseEnterCallback(GLFWwindow *window, int enter)
16231623
static EM_BOOL EmscriptenKeyboardCallback(int eventType, const EmscriptenKeyboardEvent *keyboardEvent, void *userData)
16241624
{
16251625
// WARNING: Keyboard inputs already processed through GLFW callback
1626-
1626+
16271627
return 1; // The event was consumed by the callback handler
16281628
}
16291629
*/

src/rcore.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,25 +1963,25 @@ bool IsFileExtension(const char *fileName, const char *ext)
19631963
if ((fileExt[i] >= 'A') && (fileExt[i] <= 'Z')) fileExtLower[i] = fileExt[i] + 32;
19641964
else fileExtLower[i] = fileExt[i];
19651965
}
1966-
1966+
19671967
int extCount = 1;
19681968
int extLen = (int)strlen(ext);
19691969
char *extList = (char *)RL_CALLOC(extLen + 1, 1);
19701970
char *extListPtrs[MAX_FILE_EXTENSIONS] = { 0 };
19711971
strcpy(extList, ext);
19721972
extListPtrs[0] = extList;
1973-
1974-
for (int i = 0; i < extLen; i++)
1973+
1974+
for (int i = 0; i < extLen; i++)
19751975
{
19761976
// Convert to lower-case if extension is upper-case
19771977
if ((extList[i] >= 'A') && (extList[i] <= 'Z')) extList[i] += 32;
1978-
1978+
19791979
// Get pointer to next extension and add null-terminator
19801980
if ((extList[i] == ';') && (extCount < (MAX_FILE_EXTENSIONS - 1)))
19811981
{
1982-
extList[i] = '\0';
1982+
extList[i] = '\0';
19831983
extListPtrs[extCount] = extList + i + 1;
1984-
extCount++;
1984+
extCount++;
19851985
}
19861986
}
19871987

@@ -1991,7 +1991,7 @@ bool IsFileExtension(const char *fileName, const char *ext)
19911991
// does not start with the '.'
19921992
fileExtLowerPtr = fileExtLower;
19931993
if (extListPtrs[i][0] != '.') fileExtLowerPtr++;
1994-
1994+
19951995
if (strcmp(fileExtLowerPtr, extListPtrs[i]) == 0)
19961996
{
19971997
result = true;
@@ -2053,7 +2053,7 @@ int GetFileLength(const char *fileName)
20532053
// WARNING: We just get the ptr but not the extension as a separate string
20542054
const char *GetFileExtension(const char *fileName)
20552055
{
2056-
const char *dot = strrchr(fileName, '.');
2056+
const char *dot = strrchr(fileName, '.');
20572057

20582058
if (!dot || (dot == fileName)) return NULL;
20592059

src/rlgl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2573,7 +2573,7 @@ void rlLoadExtensions(void *loader)
25732573

25742574
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
25752575
RLGL.loader = (rlglLoadProc)loader;
2576-
2576+
25772577
// NOTE: Anisotropy levels capability is an extension
25782578
#ifndef GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT
25792579
#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF

0 commit comments

Comments
 (0)