Skip to content

Commit ce40053

Browse files
committed
Remove trailing spaces
1 parent 9ef6850 commit ce40053

7 files changed

Lines changed: 21 additions & 21 deletions

File tree

src/platforms/rcore_desktop_glfw.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,7 @@ void OpenURL(const char *url)
11981198
TRACELOG(LOG_WARNING, "SYSTEM: Provided URL must start with 'http://' or 'https://' protocols");
11991199
}
12001200
else
1201-
{
1201+
{
12021202
char *cmd = (char *)RL_CALLOC(strlen(url) + 16, sizeof(char));
12031203
#if defined(_WIN32)
12041204
sprintf(cmd, "explorer \"%s\"", url);
@@ -1211,7 +1211,7 @@ void OpenURL(const char *url)
12111211
#endif
12121212
// TODO: Replace system() call by custom process
12131213
int result = system(cmd);
1214-
1214+
12151215
if (result == -1) TRACELOG(LOG_WARNING, "OpenURL() child process could not be created");
12161216
RL_FREE(cmd);
12171217
}
@@ -2186,12 +2186,12 @@ static void MouseScrollCallback(GLFWwindow *window, double xoffset, double yoffs
21862186
// GLFW3: Cursor ennter callback, when cursor enters the window
21872187
static void CursorEnterCallback(GLFWwindow *window, int entered)
21882188
{
2189-
if (entered)
2189+
if (entered)
21902190
{
21912191
// NOTE: Mouse position updated by MouseCursorPosCallback()
21922192
CORE.Input.Mouse.cursorOnScreen = true;
21932193
}
2194-
else
2194+
else
21952195
{
21962196
CORE.Input.Mouse.cursorOnScreen = false;
21972197
CORE.Input.Mouse.currentPosition = (Vector2){ 0 };

src/platforms/rcore_desktop_rgfw.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@ void OpenURL(const char *url)
14881488
TRACELOG(LOG_WARNING, "SYSTEM: Provided URL must start with 'http://' or 'https://' protocols");
14891489
}
14901490
else
1491-
{
1491+
{
14921492
char *cmd = (char *)RL_CALLOC(strlen(url) + 16, sizeof(char));
14931493
#if defined(_WIN32)
14941494
sprintf(cmd, "explorer \"%s\"", url);
@@ -1621,7 +1621,7 @@ void PollInputEvents(void)
16211621
while (mg_gamepads_check_event(&platform.minigamepad, &gamepad_event))
16221622
{
16231623
int gamepadIndex = gamepad_event.gamepad->index;
1624-
1624+
16251625
switch (gamepad_event.type)
16261626
{
16271627
case MG_EVENT_BUTTON_PRESS:
@@ -1682,10 +1682,10 @@ void PollInputEvents(void)
16821682
if (platform.minigamepad.gamepads[gamepadIndex].axes[i].supported) axisCount += 1;
16831683
else break;
16841684
}
1685-
1685+
16861686
CORE.Input.Gamepad.axisCount[gamepadIndex] = axisCount;
16871687
snprintf(CORE.Input.Gamepad.name[gamepadIndex], MAX_GAMEPAD_NAME_LENGTH, "%s", platform.minigamepad.gamepads[gamepadIndex].name);
1688-
1688+
16891689
} break;
16901690
case MG_EVENT_GAMEPAD_DISCONNECT: CORE.Input.Gamepad.ready[gamepadIndex] = false; break;
16911691
default: break;

src/platforms/rcore_desktop_win32.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,11 +1264,11 @@ void OpenURL(const char *url)
12641264
TRACELOG(LOG_WARNING, "SYSTEM: Provided URL must start with 'http://' or 'https://' protocols");
12651265
}
12661266
else
1267-
{
1267+
{
12681268
int len = strlen(url) + 16;
12691269
char *cmd = (char *)RL_CALLOC(len, sizeof(char));
12701270
snprintf(cmd, len, "explorer \"%s\"", url);
1271-
1271+
12721272
int result = system(cmd);
12731273
if (result == -1) TRACELOG(LOG_WARNING, "OpenURL() child process could not be created");
12741274
RL_FREE(cmd);
@@ -1299,7 +1299,7 @@ void SetMousePosition(int x, int y)
12991299
if (!CORE.Input.Mouse.cursorLocked)
13001300
{
13011301
CORE.Input.Mouse.currentPosition = (Vector2){ (float)x, (float)y };
1302-
1302+
13031303
TRACELOG(LOG_WARNING, "SetMousePosition not implemented at platform level");
13041304
}
13051305
else TRACELOG(LOG_WARNING, "INPUT: MOUSE: Cursor not enabled");

src/platforms/rcore_drm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ int InitPlatform(void)
14441444
return -1;
14451445
}
14461446

1447-
// WARNING: Providing framebufferAttribs is not logically necessary,
1447+
// WARNING: Providing framebufferAttribs is not logically necessary,
14481448
// but it may prevent segfaults on some nvidia drivers
14491449
if (!eglChooseConfig(platform.device, framebufferAttribs, NULL, 0, &numConfigs))
14501450
{

src/rcore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2846,7 +2846,7 @@ bool IsPathDirectory(const char *path)
28462846
bool IsPathAbsolute(const char *path)
28472847
{
28482848
int result = false;
2849-
2849+
28502850
if ((path != NULL) && (path[0] != '\0'))
28512851
{
28522852
#if defined(_WIN32)

src/rlgl.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3793,7 +3793,7 @@ unsigned char *rlReadScreenPixels(int width, int height)
37933793
{
37943794
unsigned char *imgData = (unsigned char *)RL_CALLOC(width*height*4, sizeof(unsigned char));
37953795

3796-
// NOTE: Buffer retrieved is GL_FRONT in single-buffered configurations
3796+
// NOTE: Buffer retrieved is GL_FRONT in single-buffered configurations
37973797
// and GL_BACK in double-buffered configurations, make sure to call it at the end of frame
37983798
//glReadBuffer(GL_BACK);
37993799

@@ -5243,7 +5243,7 @@ static int rlGetPixelDataSize(int width, int height, int format)
52435243
int blockHeight = (height + 3)/4;
52445244
unsigned long long dataSizeBytes = (unsigned long long)blockWidth*blockHeight*8;
52455245
if (dataSizeBytes < INT_MAX) dataSize = (int)dataSizeBytes;
5246-
5246+
52475247
} break;
52485248
case RL_PIXELFORMAT_COMPRESSED_DXT3_RGBA:
52495249
case RL_PIXELFORMAT_COMPRESSED_DXT5_RGBA:
@@ -5254,15 +5254,15 @@ static int rlGetPixelDataSize(int width, int height, int format)
52545254
int blockHeight = (height + 3)/4;
52555255
unsigned long long dataSizeBytes = (unsigned long long)blockWidth*blockHeight*16;
52565256
if (dataSizeBytes < INT_MAX) dataSize = (int)dataSizeBytes;
5257-
5257+
52585258
} break;
52595259
case RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA: // 4 bytes per each 4x4 block
52605260
{
52615261
int blockWidth = (width + 3)/4;
52625262
int blockHeight = (height + 3)/4;
52635263
unsigned long long dataSizeBytes = (unsigned long long)blockWidth*blockHeight*4;
52645264
if (dataSizeBytes < INT_MAX) dataSize = (int)dataSizeBytes;
5265-
5265+
52665266
} break;
52675267
default: break;
52685268
}
@@ -5274,7 +5274,7 @@ static int rlGetPixelDataSize(int width, int height, int format)
52745274
unsigned long long dataSizeBytes = ((unsigned long long)width*height*bpp) >> 3; // Get size in bytes (dividing by 8)
52755275
if (dataSizeBytes < INT_MAX) dataSize = (int)dataSizeBytes;
52765276
}
5277-
5277+
52785278
if (dataSize == 0) TRACELOG(LOG_WARNING, "Requested image size is larger than 2GB, it can not be allocated");
52795279

52805280
return dataSize;

src/rtextures.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,7 @@ Image ImageFromImage(Image image, Rectangle rec)
12501250

12511251
for (int y = 0; y < (int)rec.height; y++)
12521252
{
1253-
memcpy(((unsigned char *)result.data) + y*(int)rec.width*bytesPerPixel,
1253+
memcpy(((unsigned char *)result.data) + y*(int)rec.width*bytesPerPixel,
12541254
((unsigned char *)image.data) + ((y + (int)rec.y)*image.width + (int)rec.x)*bytesPerPixel,
12551255
(int)rec.width*bytesPerPixel);
12561256
}
@@ -5523,7 +5523,7 @@ int GetPixelDataSize(int width, int height, int format)
55235523
case PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA: bpp = 2; break;
55245524
default: break;
55255525
}
5526-
5526+
55275527
unsigned long long dataSizeBytes = ((unsigned long long)width*height*bpp) >> 3; // Get size in bytes (dividing by 8)
55285528

55295529
if (dataSizeBytes < INT_MAX)
@@ -5538,7 +5538,7 @@ int GetPixelDataSize(int width, int height, int format)
55385538
else if ((format >= PIXELFORMAT_COMPRESSED_DXT3_RGBA) && (format < PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA)) dataSize = 16;
55395539
}
55405540
}
5541-
5541+
55425542
// NOTE: In case required image data larger than 2GB, no memory allocated at all (NULL)
55435543
if (dataSize == 0) TRACELOG(LOG_WARNING, "Requested image size is larger than 2GB, it can not be allocated");
55445544

0 commit comments

Comments
 (0)