Преглед на файлове

Review tabs and trail-spaces

Ray преди 2 години
родител
ревизия
93f59a6f59
променени са 5 файла, в които са добавени 16 реда и са изтрити 16 реда
  1. 2 2
      src/raudio.c
  2. 3 3
      src/raymath.h
  3. 1 1
      src/rcore.c
  4. 2 2
      src/rtext.c
  5. 8 8
      src/rtextures.c

+ 2 - 2
src/raudio.c

@@ -237,7 +237,7 @@ typedef struct tagBITMAPINFOHEADER {
     #define QOA_IMPLEMENTATION
     #include "external/qoa.h"           // QOA loading and saving functions
     #include "external/qoaplay.c"       // QOA stream playing helper functions
-    
+
     #if defined(_MSC_VER)
         #pragma warning(pop)        // Disable MSVC warning suppression
     #endif
@@ -920,7 +920,7 @@ Sound LoadSoundFromWave(Wave wave)
 }
 
 // Clone sound from existing sound data, clone does not own wave data
-// Wave data must 
+// Wave data must
 // NOTE: Wave data must be unallocated manually and will be shared across all clones
 Sound LoadSoundAlias(Sound source)
 {

+ 3 - 3
src/raymath.h

@@ -315,11 +315,11 @@ RMAPI float Vector2DistanceSqr(Vector2 v1, Vector2 v2)
 RMAPI float Vector2Angle(Vector2 v1, Vector2 v2)
 {
     float result = 0.0f;
-    
+
     float dot = v1.x*v2.x + v1.y*v2.y;
     float det = v1.x*v2.y - v1.y*v2.x;
     result = -atan2f(det, dot);
-    
+
     return result;
 }
 
@@ -329,7 +329,7 @@ RMAPI float Vector2Angle(Vector2 v1, Vector2 v2)
 RMAPI float Vector2LineAngle(Vector2 start, Vector2 end)
 {
     float result = 0.0f;
-    
+
     result = atan2f(end.y - start.y, end.x - start.x);
 
     return result;

+ 1 - 1
src/rcore.c

@@ -4434,7 +4434,7 @@ static bool InitGraphicsDevice(int width, int height)
 #if defined(PLATFORM_WEB)
     emscripten_set_window_title((CORE.Window.title != 0)? CORE.Window.title : " ");
 #endif
-    
+
     // Set window callback events
     glfwSetWindowSizeCallback(CORE.Window.handle, WindowSizeCallback);      // NOTE: Resizing not allowed by default!
 #if !defined(PLATFORM_WEB)

+ 2 - 2
src/rtext.c

@@ -852,7 +852,7 @@ Image GenImageFontAtlas(const GlyphInfo *chars, Rectangle **charRecs, int glyphC
         RL_FREE(nodes);
         RL_FREE(context);
     }
-    
+
 #if defined(SUPPORT_FONT_ATLAS_WHITE_REC)
     // Add a 3x3 white rectangle at the bottom-right corner of the generated atlas,
     // useful to use as the white texture to draw shapes with raylib, using this rectangle
@@ -865,7 +865,7 @@ Image GenImageFontAtlas(const GlyphInfo *chars, Rectangle **charRecs, int glyphC
         k -= atlas.width;
     }
 #endif
-    
+
     // Convert image data from GRAYSCALE to GRAY_ALPHA
     unsigned char *dataGrayAlpha = (unsigned char *)RL_MALLOC(atlas.width*atlas.height*sizeof(unsigned char)*2); // Two channels
 

+ 8 - 8
src/rtextures.c

@@ -184,7 +184,7 @@
         #pragma warning(push)
         #pragma warning(disable : 4267)
     #endif
-    
+
     #define QOI_IMPLEMENTATION
     #include "external/qoi.h"
 
@@ -3300,13 +3300,13 @@ void ImageDrawRectangleRec(Image *dst, Rectangle rec, Color color)
     {
         memcpy(pSrcPixel + x*bytesPerPixel, pSrcPixel, bytesPerPixel);
     }
-	
-	// Repeat the first row data for all other rows
-	int bytesPerRow = bytesPerPixel * (int)rec.width;
-	for (int y = 1; y < (int)rec.height; y++)
-	{
-		memcpy(pSrcPixel + (y*dst->width)*bytesPerPixel, pSrcPixel, bytesPerRow);
-	}
+
+    // Repeat the first row data for all other rows
+    int bytesPerRow = bytesPerPixel * (int)rec.width;
+    for (int y = 1; y < (int)rec.height; y++)
+    {
+        memcpy(pSrcPixel + (y*dst->width)*bytesPerPixel, pSrcPixel, bytesPerRow);
+    }
 }
 
 // Draw rectangle lines within an image