diff --git a/src/external/rlsw.h b/src/external/rlsw.h index b98a3f684..bb6e11679 100644 --- a/src/external/rlsw.h +++ b/src/external/rlsw.h @@ -1240,8 +1240,8 @@ static inline float sw_fract(float x) // Xtensa architecture optimization // Fast reciprocal: 1-ULP accurate in ~7 instructions using the -// hardware `recip0.s` seed + two Newton-Raphson refinement steps -// All work stays in FPU registers — no `__divsf3` software call +// hardware `recip0.s` seed + two Newton-Raphson refinement steps +// All work stays in FPU registers — no `__divsf3` software call // 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 #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 // 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]; if (y < 0 || y >= RLSW.colorBuffer->height) return; diff --git a/src/platforms/rcore_desktop_rgfw.c b/src/platforms/rcore_desktop_rgfw.c index a2c005662..f6b269a1d 100644 --- a/src/platforms/rcore_desktop_rgfw.c +++ b/src/platforms/rcore_desktop_rgfw.c @@ -471,7 +471,7 @@ static void RGFW_cb_mousenotifyfunc(const RGFW_event* e) // static void RGFW_cb_windowclosefunc(const RGFW_event* e) // { // if (e->common.win != platform.window) return; - + // // we don't want to close here. raylib handles it // // 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)); 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!"); } @@ -594,7 +594,7 @@ static void RGFW_cb_windowmaximizefunc(const RGFW_event* e) static void RGFW_cb_windowminimizefunc(const RGFW_event* e) { if (e->common.win != platform.window) return; - + FLAG_SET(CORE.Window.flags, FLAG_WINDOW_MINIMIZED); // The window was iconified } 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) { if (e->common.win != platform.window) return; - + // NOTE: event.text.text data comes an UTF-8 text sequence but registering codepoints (int) // Check if there is space available in the queue if (CORE.Input.Keyboard.charPressedQueueCount < MAX_CHAR_PRESSED_QUEUE) @@ -1145,7 +1145,7 @@ void *GetWindowHandle(void) #elif defined(__linux__) #if defined(RGFW_X11) platform.windowHandleX11 = platform.window->src.window; // Type: Window (unsigned long) - handle = &platform.window->src.window; + handle = &platform.window->src.window; #elif defined(RGFW_WAYLAND) handle = (void *)platform.window->src.surface; // Type: struct wl_surface* #endif diff --git a/src/platforms/rcore_desktop_sdl.c b/src/platforms/rcore_desktop_sdl.c index d568ec095..8ff17271f 100644 --- a/src/platforms/rcore_desktop_sdl.c +++ b/src/platforms/rcore_desktop_sdl.c @@ -56,7 +56,7 @@ #include "SDL3/SDL.h" #elif defined(USING_SDL2_PROJECT) #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 #include "SDL.h" #endif diff --git a/src/platforms/rcore_memory.c b/src/platforms/rcore_memory.c index e7934bd96..14c56a591 100644 --- a/src/platforms/rcore_memory.c +++ b/src/platforms/rcore_memory.c @@ -366,7 +366,7 @@ double GetTime(void) #if defined(_WIN32) LARGE_INTEGER currentTicks = { 0 }; QueryPerformanceCounter(¤tTicks); - + time = (double)(currentTicks.QuadPart - CORE.Time.base)/(double)platform.timerFrequency.QuadPart; #elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__EMSCRIPTEN__) struct timespec ts = { 0 }; diff --git a/src/rcore.c b/src/rcore.c index a37400cf1..7455e3597 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -2263,11 +2263,11 @@ int FileMove(const char *srcPath, const char *dstPath) if (FileExists(srcPath)) { result = FileCopy(srcPath, dstPath); - + if (result == 0) { // 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); if (result != 0) TRACELOG(LOG_WARNING, "FILEIO: [%s] Failed to remove source file after copy", srcPath); diff --git a/src/rtext.c b/src/rtext.c index a7f715ba3..75a73b813 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -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); } - else + else { TRACELOG(LOG_WARNING, "FONT: Font is not supported by LoadFontEx/LoadFontFromMemory or no glyphs found, reverted to default font"); font = GetFontDefault(); diff --git a/src/rtextures.c b/src/rtextures.c index e982a9d55..724fe73cd 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -573,7 +573,7 @@ Image LoadImageFromTexture(Texture2D texture) image.format = texture.format; #endif image.mipmaps = 1; - + 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); @@ -1503,7 +1503,7 @@ Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Co 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 }; - 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); } diff --git a/tools/rexm/rexm.c b/tools/rexm/rexm.c index 58ae835f7..f268a7d44 100644 --- a/tools/rexm/rexm.c +++ b/tools/rexm/rexm.c @@ -680,7 +680,7 @@ int main(int argc, char *argv[]) LOG("INFO: [%s] Building example for PLATFORM_WEB (Host: POSIX)\n", GetFileNameWithoutExt(inFileName)); #endif system(TextFormat("make -C %s -f Makefile.Web %s/%s PLATFORM=PLATFORM_WEB -B", exBasePath, exCategory, exName)); - + // Update generated .html metadata LOG("INFO: [%s] Updating HTML Metadata...\n", TextFormat("%s.html", exName)); UpdateWebMetadata(TextFormat("%s/%s/%s.html", exBasePath, exCategory, exName), @@ -1886,11 +1886,11 @@ int main(int argc, char *argv[]) printf(" test : Build and Test example for Desktop and Web platforms\n"); printf(" validate : Validate examples collection, generates report\n"); printf(" update : Validate and update examples collection, generates report\n\n"); - + printf("OPTIONS:\n\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("\nEXAMPLES:\n\n"); printf(" > rexm add shapes_custom_stars\n"); printf(" Add and updates new example provided \n\n");