From 1eea511070ece8e4f96e961588811340ebd0b11e Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 16 Mar 2026 17:51:53 +0100 Subject: [PATCH] Remove trailing spaces --- .github/workflows/build_webassembly.yml | 18 +++++++++--------- examples/audio/audio_stream_callback.c | 8 ++++---- projects/4coder/Makefile | 8 ++++---- src/platforms/rcore_desktop_sdl.c | 4 ++-- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build_webassembly.yml b/.github/workflows/build_webassembly.yml index 2a126ff46..1e4066c26 100644 --- a/.github/workflows/build_webassembly.yml +++ b/.github/workflows/build_webassembly.yml @@ -18,20 +18,20 @@ on: jobs: build: runs-on: windows-latest - + env: RELEASE_NAME: raylib-dev_webassembly - + steps: - name: Checkout uses: actions/checkout@master - + - name: Setup emsdk uses: mymindstorm/setup-emsdk@v14 with: version: 5.0.3 actions-cache-folder: 'emsdk-cache' - + - name: Setup Release Version run: | echo "RELEASE_NAME=raylib-${{ github.event.release.tag_name }}_webassembly" >> $GITHUB_ENV @@ -39,7 +39,7 @@ jobs: if: github.event_name == 'release' && github.event.action == 'published' - name: Setup Environment - run: | + run: | mkdir build cd build mkdir ${{ env.RELEASE_NAME }} @@ -47,14 +47,14 @@ jobs: mkdir include mkdir lib cd ../.. - + - name: Build Library run: | cd src emcc -v make PLATFORM=PLATFORM_WEB EMSDK_PATH="D:/a/raylib/raylib/emsdk-cache/emsdk-main" RAYLIB_RELEASE_PATH="../build/${{ env.RELEASE_NAME }}/lib" -B cd .. - + - name: Generate Artifacts run: | copy /Y .\src\raylib.h .\build\${{ env.RELEASE_NAME }}\include\raylib.h @@ -67,7 +67,7 @@ jobs: 7z a ./${{ env.RELEASE_NAME }}.zip ./${{ env.RELEASE_NAME }} dir shell: cmd - + - name: Upload Artifacts uses: actions/upload-artifact@v4 with: @@ -75,7 +75,7 @@ jobs: path: | ./build/${{ env.RELEASE_NAME }} !./build/${{ env.RELEASE_NAME }}.zip - + - name: Upload Artifact to Release uses: softprops/action-gh-release@v1 with: diff --git a/examples/audio/audio_stream_callback.c b/examples/audio/audio_stream_callback.c index 088c74dcb..a033571d1 100644 --- a/examples/audio/audio_stream_callback.c +++ b/examples/audio/audio_stream_callback.c @@ -8,9 +8,9 @@ * * Example created by Dan Hoang (@dan-hoang) and reviewed by Ramon Santamaria (@raysan5) * -* NOTE: Example sends a wave to the audio device, +* NOTE: Example sends a wave to the audio device, * user gets the choice of four waves: sine, square, triangle, and sawtooth -* A stream is set up to play to the audio device; stream is hooked to a callback that +* A stream is set up to play to the audio device; stream is hooked to a callback that * generates a wave, that is determined by user choice * * Example licensed under an unmodified zlib/libpng license, which is an OSI-certified, @@ -28,7 +28,7 @@ #define BUFFER_SIZE 4096 #define SAMPLE_RATE 44100 -// Wave type +// Wave type typedef enum { SINE, SQUARE, @@ -48,7 +48,7 @@ static int waveFrequency = 440; static int newWaveFrequency = 440; static int waveIndex = 0; -// Buffer to keep the last second of uploaded audio, +// Buffer to keep the last second of uploaded audio, // part of which will be drawn on the screen static float buffer[SAMPLE_RATE] = { 0 }; static AudioCallback waveCallbacks[] = { SineCallback, SquareCallback, TriangleCallback, SawtoothCallback }; diff --git a/projects/4coder/Makefile b/projects/4coder/Makefile index 30dcd7770..ec0977aaf 100644 --- a/projects/4coder/Makefile +++ b/projects/4coder/Makefile @@ -163,7 +163,7 @@ ifeq ($(PLATFORM),PLATFORM_RPI) endif ifeq ($(PLATFORM),PLATFORM_WEB) # HTML5 emscripten compiler - # WARNING: To compile to HTML5, code must be redesigned + # WARNING: To compile to HTML5, code must be redesigned # to use emscripten.h and emscripten_set_main_loop() CC = emcc endif @@ -297,12 +297,12 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) # Libraries for Debian GNU/Linux desktop compiling # NOTE: Required packages: libegl1-mesa-dev LDLIBS = -lraylib -lGL -lm -lpthread -ldl -lrt - + # On X11 requires also below libraries LDLIBS += -lX11 # NOTE: It seems additional libraries are not required any more, latest GLFW just dlopen them #LDLIBS += -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor - + # On Wayland windowing system, additional libraries requires ifeq ($(USE_WAYLAND_DISPLAY),TRUE) LDLIBS += -lwayland-client -lwayland-cursor -lwayland-egl -lxkbcommon @@ -354,7 +354,7 @@ OBJS = main.c # For Android platform we call a custom Makefile.Android ifeq ($(PLATFORM),PLATFORM_ANDROID) - MAKEFILE_PARAMS = -f Makefile.Android + MAKEFILE_PARAMS = -f Makefile.Android export PROJECT_NAME export SRC_DIR else diff --git a/src/platforms/rcore_desktop_sdl.c b/src/platforms/rcore_desktop_sdl.c index 5cd93ebd7..9b6bea987 100644 --- a/src/platforms/rcore_desktop_sdl.c +++ b/src/platforms/rcore_desktop_sdl.c @@ -2126,11 +2126,11 @@ int InitPlatform(void) //---------------------------------------------------------------------------- // Get base time from window initialization CORE.Time.base = (double)(SDL_GetPerformanceCounter()/SDL_GetPerformanceFrequency()); - + #if defined(_WIN32) && SUPPORT_WINMM_HIGHRES_TIMER && !SUPPORT_BUSY_WAIT_LOOP SDL_SetHint(SDL_HINT_TIMER_RESOLUTION, "1"); // SDL equivalent of timeBeginPeriod() and timeEndPeriod() #endif - + // NOTE: No need to call InitTimer(), let SDL manage it internally //----------------------------------------------------------------------------