diff options
| author | Ray <[email protected]> | 2023-08-10 22:47:17 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-08-10 22:47:17 +0200 |
| commit | 93f59a6f5912aa07fcfc2268ce119da09dff458a (patch) | |
| tree | 7de73ac8e780731a1bbd3ce318f352578e099d1f /src/rtextures.c | |
| parent | f1c31bee279285ad941acc1140caeb3dca86867f (diff) | |
| download | raylib-93f59a6f5912aa07fcfc2268ce119da09dff458a.tar.gz raylib-93f59a6f5912aa07fcfc2268ce119da09dff458a.zip | |
Review tabs and trail-spaces
Diffstat (limited to 'src/rtextures.c')
| -rw-r--r-- | src/rtextures.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/rtextures.c b/src/rtextures.c index f6e7e49c..4b697f77 100644 --- a/src/rtextures.c +++ b/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 |
