Reemove trailing spaces

This commit is contained in:
Ray
2026-06-16 21:12:12 +02:00
parent fa8aca8789
commit f9c41a0866
8 changed files with 18 additions and 18 deletions
+3 -3
View File
@@ -1240,8 +1240,8 @@ static inline float sw_fract(float x)
// Xtensa architecture optimization // Xtensa architecture optimization
// Fast reciprocal: 1-ULP accurate in ~7 instructions using the // Fast reciprocal: 1-ULP accurate in ~7 instructions using the
// hardware `recip0.s` seed + two Newton-Raphson refinement steps // hardware `recip0.s` seed + two Newton-Raphson refinement steps
// All work stays in FPU registers — no `__divsf3` software call // All work stays in FPU registers — no `__divsf3` software call
// Hot-path divisions in the rasterizer (span/triangle setup, perspective divide, etc.) call this // Hot-path divisions in the rasterizer (span/triangle setup, perspective divide, etc.) call this
// On non-Xtensa targets it transparently expands to `1.0f / x`, so generated code is identical to before // On non-Xtensa targets it transparently expands to `1.0f / x`, so generated code is identical to before
#if defined(__XTENSA__) #if defined(__XTENSA__)
@@ -5388,7 +5388,7 @@ static void SW_RASTER_TRIANGLE_SPAN(const sw_vertex_t *start, const sw_vertex_t
if (xLoopStart >= xLoopEnd) return; // Nothing to draw if (xLoopStart >= xLoopEnd) return; // Nothing to draw
// Get the current row and skip if outside the framebuffer // Get the current row and skip if outside the framebuffer
// Maybe this check is better suited elsewhere? // Maybe this check is better suited elsewhere?
int y = (int)start->position[1]; int y = (int)start->position[1];
if (y < 0 || y >= RLSW.colorBuffer->height) return; if (y < 0 || y >= RLSW.colorBuffer->height) return;
+5 -5
View File
@@ -471,7 +471,7 @@ static void RGFW_cb_mousenotifyfunc(const RGFW_event* e)
// static void RGFW_cb_windowclosefunc(const RGFW_event* e) // static void RGFW_cb_windowclosefunc(const RGFW_event* e)
// { // {
// if (e->common.win != platform.window) return; // if (e->common.win != platform.window) return;
// // we don't want to close here. raylib handles it // // we don't want to close here. raylib handles it
// // RGFW_window_setShouldClose(platform.window, true); // // RGFW_window_setShouldClose(platform.window, true);
// } // }
@@ -493,7 +493,7 @@ static void RGFW_cb_dropfunc(const RGFW_event* e)
CORE.Window.dropFilepaths[CORE.Window.dropFileCount] = (char *)RL_CALLOC(MAX_FILEPATH_LENGTH, sizeof(char)); CORE.Window.dropFilepaths[CORE.Window.dropFileCount] = (char *)RL_CALLOC(MAX_FILEPATH_LENGTH, sizeof(char));
strcpy(CORE.Window.dropFilepaths[CORE.Window.dropFileCount], e->drop.value->data); strcpy(CORE.Window.dropFilepaths[CORE.Window.dropFileCount], e->drop.value->data);
CORE.Window.dropFileCount++; CORE.Window.dropFileCount++;
} }
else TRACELOG(LOG_WARNING, "FILE: Maximum drag and drop files at once is limited to 1024 files!"); else TRACELOG(LOG_WARNING, "FILE: Maximum drag and drop files at once is limited to 1024 files!");
} }
@@ -594,7 +594,7 @@ static void RGFW_cb_windowmaximizefunc(const RGFW_event* e)
static void RGFW_cb_windowminimizefunc(const RGFW_event* e) static void RGFW_cb_windowminimizefunc(const RGFW_event* e)
{ {
if (e->common.win != platform.window) return; if (e->common.win != platform.window) return;
FLAG_SET(CORE.Window.flags, FLAG_WINDOW_MINIMIZED); // The window was iconified FLAG_SET(CORE.Window.flags, FLAG_WINDOW_MINIMIZED); // The window was iconified
} }
static void RGFW_cb_windowrestorefunc(const RGFW_event* e) static void RGFW_cb_windowrestorefunc(const RGFW_event* e)
@@ -616,7 +616,7 @@ static void RGFW_cb_windowmovefunc(const RGFW_event* e)
static void RGFW_cb_keycharfunc(const RGFW_event* e) static void RGFW_cb_keycharfunc(const RGFW_event* e)
{ {
if (e->common.win != platform.window) return; if (e->common.win != platform.window) return;
// NOTE: event.text.text data comes an UTF-8 text sequence but registering codepoints (int) // NOTE: event.text.text data comes an UTF-8 text sequence but registering codepoints (int)
// Check if there is space available in the queue // Check if there is space available in the queue
if (CORE.Input.Keyboard.charPressedQueueCount < MAX_CHAR_PRESSED_QUEUE) if (CORE.Input.Keyboard.charPressedQueueCount < MAX_CHAR_PRESSED_QUEUE)
@@ -1145,7 +1145,7 @@ void *GetWindowHandle(void)
#elif defined(__linux__) #elif defined(__linux__)
#if defined(RGFW_X11) #if defined(RGFW_X11)
platform.windowHandleX11 = platform.window->src.window; // Type: Window (unsigned long) platform.windowHandleX11 = platform.window->src.window; // Type: Window (unsigned long)
handle = &platform.window->src.window; handle = &platform.window->src.window;
#elif defined(RGFW_WAYLAND) #elif defined(RGFW_WAYLAND)
handle = (void *)platform.window->src.surface; // Type: struct wl_surface* handle = (void *)platform.window->src.surface; // Type: struct wl_surface*
#endif #endif
+1 -1
View File
@@ -56,7 +56,7 @@
#include "SDL3/SDL.h" #include "SDL3/SDL.h"
#elif defined(USING_SDL2_PROJECT) #elif defined(USING_SDL2_PROJECT)
#include "SDL2/SDL.h" #include "SDL2/SDL.h"
#include "SDL2/SDL_syswm.h" // Required to get window handlers #include "SDL2/SDL_syswm.h" // Required to get window handlers
#else #else
#include "SDL.h" #include "SDL.h"
#endif #endif
+1 -1
View File
@@ -366,7 +366,7 @@ double GetTime(void)
#if defined(_WIN32) #if defined(_WIN32)
LARGE_INTEGER currentTicks = { 0 }; LARGE_INTEGER currentTicks = { 0 };
QueryPerformanceCounter(&currentTicks); QueryPerformanceCounter(&currentTicks);
time = (double)(currentTicks.QuadPart - CORE.Time.base)/(double)platform.timerFrequency.QuadPart; time = (double)(currentTicks.QuadPart - CORE.Time.base)/(double)platform.timerFrequency.QuadPart;
#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__EMSCRIPTEN__) #elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__EMSCRIPTEN__)
struct timespec ts = { 0 }; struct timespec ts = { 0 };
+2 -2
View File
@@ -2263,11 +2263,11 @@ int FileMove(const char *srcPath, const char *dstPath)
if (FileExists(srcPath)) if (FileExists(srcPath))
{ {
result = FileCopy(srcPath, dstPath); result = FileCopy(srcPath, dstPath);
if (result == 0) if (result == 0)
{ {
// Make sure file has been correctly copied before removing // Make sure file has been correctly copied before removing
if (FileExists(dstPath) && (GetFileLength(srcPath) == GetFileLength(dstPath))) if (FileExists(dstPath) && (GetFileLength(srcPath) == GetFileLength(dstPath)))
{ {
result = FileRemove(srcPath); result = FileRemove(srcPath);
if (result != 0) TRACELOG(LOG_WARNING, "FILEIO: [%s] Failed to remove source file after copy", srcPath); if (result != 0) TRACELOG(LOG_WARNING, "FILEIO: [%s] Failed to remove source file after copy", srcPath);
+1 -1
View File
@@ -580,7 +580,7 @@ Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int
TRACELOG(LOG_INFO, "FONT: Data loaded successfully (%i pixel size | %i glyphs)", font.baseSize, font.glyphCount); TRACELOG(LOG_INFO, "FONT: Data loaded successfully (%i pixel size | %i glyphs)", font.baseSize, font.glyphCount);
} }
else else
{ {
TRACELOG(LOG_WARNING, "FONT: Font is not supported by LoadFontEx/LoadFontFromMemory or no glyphs found, reverted to default font"); TRACELOG(LOG_WARNING, "FONT: Font is not supported by LoadFontEx/LoadFontFromMemory or no glyphs found, reverted to default font");
font = GetFontDefault(); font = GetFontDefault();
+2 -2
View File
@@ -573,7 +573,7 @@ Image LoadImageFromTexture(Texture2D texture)
image.format = texture.format; image.format = texture.format;
#endif #endif
image.mipmaps = 1; image.mipmaps = 1;
TRACELOG(LOG_INFO, "TEXTURE: [ID %i] Pixel data retrieved successfully", texture.id); TRACELOG(LOG_INFO, "TEXTURE: [ID %i] Pixel data retrieved successfully", texture.id);
} }
else TRACELOG(LOG_WARNING, "TEXTURE: [ID %i] Failed to retrieve pixel data", texture.id); else TRACELOG(LOG_WARNING, "TEXTURE: [ID %i] Failed to retrieve pixel data", texture.id);
@@ -1503,7 +1503,7 @@ Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Co
if ((codepoint != ' ') && (codepoint != '\t')) if ((codepoint != ' ') && (codepoint != '\t'))
{ {
Rectangle rec = { (float)(textOffsetX + font.glyphs[index].offsetX), (float)(textOffsetY + font.glyphs[index].offsetY), (float)font.recs[index].width, (float)font.recs[index].height }; Rectangle rec = { (float)(textOffsetX + font.glyphs[index].offsetX), (float)(textOffsetY + font.glyphs[index].offsetY), (float)font.recs[index].width, (float)font.recs[index].height };
ImageDrawImagePro(&imText, font.glyphs[index].image, (Rectangle){ 0, 0, (float)font.glyphs[index].image.width, (float)font.glyphs[index].image.height }, ImageDrawImagePro(&imText, font.glyphs[index].image, (Rectangle){ 0, 0, (float)font.glyphs[index].image.width, (float)font.glyphs[index].image.height },
rec, (Vector2){ 0 }, 0.0f, tint); rec, (Vector2){ 0 }, 0.0f, tint);
} }
+3 -3
View File
@@ -680,7 +680,7 @@ int main(int argc, char *argv[])
LOG("INFO: [%s] Building example for PLATFORM_WEB (Host: POSIX)\n", GetFileNameWithoutExt(inFileName)); LOG("INFO: [%s] Building example for PLATFORM_WEB (Host: POSIX)\n", GetFileNameWithoutExt(inFileName));
#endif #endif
system(TextFormat("make -C %s -f Makefile.Web %s/%s PLATFORM=PLATFORM_WEB -B", exBasePath, exCategory, exName)); system(TextFormat("make -C %s -f Makefile.Web %s/%s PLATFORM=PLATFORM_WEB -B", exBasePath, exCategory, exName));
// Update generated .html metadata // Update generated .html metadata
LOG("INFO: [%s] Updating HTML Metadata...\n", TextFormat("%s.html", exName)); LOG("INFO: [%s] Updating HTML Metadata...\n", TextFormat("%s.html", exName));
UpdateWebMetadata(TextFormat("%s/%s/%s.html", exBasePath, exCategory, exName), UpdateWebMetadata(TextFormat("%s/%s/%s.html", exBasePath, exCategory, exName),
@@ -1886,11 +1886,11 @@ int main(int argc, char *argv[])
printf(" test <example_name> : Build and Test example for Desktop and Web platforms\n"); printf(" test <example_name> : Build and Test example for Desktop and Web platforms\n");
printf(" validate : Validate examples collection, generates report\n"); printf(" validate : Validate examples collection, generates report\n");
printf(" update : Validate and update examples collection, generates report\n\n"); printf(" update : Validate and update examples collection, generates report\n\n");
printf("OPTIONS:\n\n"); printf("OPTIONS:\n\n");
printf(" -h, --help : Show tool version and command line usage help\n"); printf(" -h, --help : Show tool version and command line usage help\n");
printf(" -v, --verbose : Verbose mode, show additional logs on processes\n"); printf(" -v, --verbose : Verbose mode, show additional logs on processes\n");
printf("\nEXAMPLES:\n\n"); printf("\nEXAMPLES:\n\n");
printf(" > rexm add shapes_custom_stars\n"); printf(" > rexm add shapes_custom_stars\n");
printf(" Add and updates new example provided <shapes_custom_stars>\n\n"); printf(" Add and updates new example provided <shapes_custom_stars>\n\n");