mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-06 06:13:10 +00:00
Remove trailing spaces
This commit is contained in:
parent
97707d7a6b
commit
6c3ef8d9b4
@ -593,7 +593,7 @@ AudioBuffer *LoadAudioBuffer(ma_format format, ma_uint32 channels, ma_uint32 sam
|
|||||||
// Init audio buffer values
|
// Init audio buffer values
|
||||||
audioBuffer->volume = 1.0f;
|
audioBuffer->volume = 1.0f;
|
||||||
audioBuffer->pitch = 1.0f;
|
audioBuffer->pitch = 1.0f;
|
||||||
audioBuffer->pan = 0.0f; // Center
|
audioBuffer->pan = 0.0f; // Center
|
||||||
|
|
||||||
audioBuffer->callback = NULL;
|
audioBuffer->callback = NULL;
|
||||||
audioBuffer->processor = NULL;
|
audioBuffer->processor = NULL;
|
||||||
|
|||||||
@ -3343,7 +3343,7 @@ void ImageClearBackground(Image *dst, Color color)
|
|||||||
int bytesPerPixel = GetPixelDataSize(1, 1, dst->format);
|
int bytesPerPixel = GetPixelDataSize(1, 1, dst->format);
|
||||||
int totalPixels = dst->width * dst->height;
|
int totalPixels = dst->width * dst->height;
|
||||||
|
|
||||||
// Repeat the first pixel data throughout the image,
|
// Repeat the first pixel data throughout the image,
|
||||||
// doubling the pixels copied on each iteration
|
// doubling the pixels copied on each iteration
|
||||||
for (int i = 1; i < totalPixels; i *= 2)
|
for (int i = 1; i < totalPixels; i *= 2)
|
||||||
{
|
{
|
||||||
@ -3727,7 +3727,7 @@ void ImageDrawRectangleRec(Image *dst, Rectangle rec, Color color)
|
|||||||
unsigned char *pSrcPixel = (unsigned char *)dst->data + bytesOffset;
|
unsigned char *pSrcPixel = (unsigned char *)dst->data + bytesOffset;
|
||||||
|
|
||||||
// Repeat the first pixel data throughout the row
|
// Repeat the first pixel data throughout the row
|
||||||
for (int x = 1; x < (int)rec.width; x *= 2)
|
for (int x = 1; x < (int)rec.width; x *= 2)
|
||||||
{
|
{
|
||||||
int pixelsToCopy = MIN(x, (int)rec.width - x);
|
int pixelsToCopy = MIN(x, (int)rec.width - x);
|
||||||
memcpy(pSrcPixel + x*bytesPerPixel, pSrcPixel, pixelsToCopy * bytesPerPixel);
|
memcpy(pSrcPixel + x*bytesPerPixel, pSrcPixel, pixelsToCopy * bytesPerPixel);
|
||||||
|
|||||||
@ -418,7 +418,7 @@ int main(int argc, char *argv[])
|
|||||||
// Support building/testing not only individual examples but multiple: ALL/<category>
|
// Support building/testing not only individual examples but multiple: ALL/<category>
|
||||||
int exBuildListInfoCount = 0;
|
int exBuildListInfoCount = 0;
|
||||||
rlExampleInfo *exBuildListInfo = LoadExampleData(argv[2], false, &exBuildListInfoCount);
|
rlExampleInfo *exBuildListInfo = LoadExampleData(argv[2], false, &exBuildListInfoCount);
|
||||||
|
|
||||||
for (int i = 0; i < exBuildListInfoCount; i++)
|
for (int i = 0; i < exBuildListInfoCount; i++)
|
||||||
{
|
{
|
||||||
if (!TextIsEqual(exBuildListInfo[i].category, "others"))
|
if (!TextIsEqual(exBuildListInfo[i].category, "others"))
|
||||||
@ -428,9 +428,9 @@ int main(int argc, char *argv[])
|
|||||||
exBuildListCount++;
|
exBuildListCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UnloadExampleData(exBuildListInfo);
|
UnloadExampleData(exBuildListInfo);
|
||||||
|
|
||||||
if (exBuildListCount == 0) LOG("WARNING: BUILD: Example requested not available in the collection\n");
|
if (exBuildListCount == 0) LOG("WARNING: BUILD: Example requested not available in the collection\n");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -933,7 +933,7 @@ int main(int argc, char *argv[])
|
|||||||
system(TextFormat("mingw32-make -C %s %s/%s PLATFORM=PLATFORM_DESKTOP -B", exBasePath, exCategory, exName));
|
system(TextFormat("mingw32-make -C %s %s/%s PLATFORM=PLATFORM_DESKTOP -B", exBasePath, exCategory, exName));
|
||||||
#elif defined(PLATFORM_DRM)
|
#elif defined(PLATFORM_DRM)
|
||||||
LOG("INFO: [%s] Building example for PLATFORM_DRM (Host: POSIX)\n", exName);
|
LOG("INFO: [%s] Building example for PLATFORM_DRM (Host: POSIX)\n", exName);
|
||||||
system(TextFormat("make -C %s %s/%s PLATFORM=PLATFORM_DRM -B > %s/%s/logs/%s.build.log 2>&1",
|
system(TextFormat("make -C %s %s/%s PLATFORM=PLATFORM_DRM -B > %s/%s/logs/%s.build.log 2>&1",
|
||||||
exBasePath, exCategory, exName, exBasePath, exCategory, exName));
|
exBasePath, exCategory, exName, exBasePath, exCategory, exName));
|
||||||
#else
|
#else
|
||||||
LOG("INFO: [%s] Building example for PLATFORM_DESKTOP (Host: POSIX)\n", exName);
|
LOG("INFO: [%s] Building example for PLATFORM_DESKTOP (Host: POSIX)\n", exName);
|
||||||
@ -1495,7 +1495,7 @@ int main(int argc, char *argv[])
|
|||||||
strncpy(exCategory, exName, TextFindIndex(exName, "_"));
|
strncpy(exCategory, exName, TextFindIndex(exName, "_"));
|
||||||
|
|
||||||
// Skip some examples from building
|
// Skip some examples from building
|
||||||
if ((strcmp(exName, "core_custom_logging") == 0) ||
|
if ((strcmp(exName, "core_custom_logging") == 0) ||
|
||||||
(strcmp(exName, "core_window_should_close") == 0) ||
|
(strcmp(exName, "core_window_should_close") == 0) ||
|
||||||
(strcmp(exName, "core_custom_frame_control") == 0)) continue;
|
(strcmp(exName, "core_custom_frame_control") == 0)) continue;
|
||||||
|
|
||||||
@ -1512,7 +1512,7 @@ int main(int argc, char *argv[])
|
|||||||
// STEP 3: Run example with arguments: --frames 2 > <example>.out.log
|
// STEP 3: Run example with arguments: --frames 2 > <example>.out.log
|
||||||
// STEP 4: Load <example>.out.log and check "WARNING:" messages -> Some could maybe be ignored
|
// STEP 4: Load <example>.out.log and check "WARNING:" messages -> Some could maybe be ignored
|
||||||
// STEP 5: Generate report with results
|
// STEP 5: Generate report with results
|
||||||
|
|
||||||
// STEP 1: Load example and inject required code
|
// STEP 1: Load example and inject required code
|
||||||
// PROBLEM: As we need to modify the example source code for building, we need to keep a copy or something
|
// PROBLEM: As we need to modify the example source code for building, we need to keep a copy or something
|
||||||
// WARNING: If we make a copy and something fails, it could not be restored at the end
|
// WARNING: If we make a copy and something fails, it could not be restored at the end
|
||||||
@ -1572,7 +1572,7 @@ int main(int argc, char *argv[])
|
|||||||
// Build: raylib.com/examples/<category>/<category>_example_name.js
|
// Build: raylib.com/examples/<category>/<category>_example_name.js
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
LOG("INFO: [%s] Building example for PLATFORM_WEB (Host: Win32)\n", exName);
|
LOG("INFO: [%s] Building example for PLATFORM_WEB (Host: Win32)\n", exName);
|
||||||
system(TextFormat("mingw32-make -C %s -f Makefile.Web %s/%s PLATFORM=PLATFORM_WEB -B > %s/%s/logs/%s.build.log 2>&1",
|
system(TextFormat("mingw32-make -C %s -f Makefile.Web %s/%s PLATFORM=PLATFORM_WEB -B > %s/%s/logs/%s.build.log 2>&1",
|
||||||
exBasePath, exCategory, exName, exBasePath, exCategory, exName));
|
exBasePath, exCategory, exName, exBasePath, exCategory, exName));
|
||||||
#else
|
#else
|
||||||
LOG("INFO: [%s] Building example for PLATFORM_WEB (Host: POSIX)\n", exName);
|
LOG("INFO: [%s] Building example for PLATFORM_WEB (Host: POSIX)\n", exName);
|
||||||
@ -1622,15 +1622,15 @@ int main(int argc, char *argv[])
|
|||||||
// Build example for PLATFORM_DESKTOP
|
// Build example for PLATFORM_DESKTOP
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
LOG("INFO: [%s] Building example for PLATFORM_DESKTOP (Host: Win32)\n", exName);
|
LOG("INFO: [%s] Building example for PLATFORM_DESKTOP (Host: Win32)\n", exName);
|
||||||
system(TextFormat("mingw32-make -C %s %s/%s PLATFORM=PLATFORM_DESKTOP -B > %s/%s/logs/%s.build.log 2>&1",
|
system(TextFormat("mingw32-make -C %s %s/%s PLATFORM=PLATFORM_DESKTOP -B > %s/%s/logs/%s.build.log 2>&1",
|
||||||
exBasePath, exCategory, exName, exBasePath, exCategory, exName));
|
exBasePath, exCategory, exName, exBasePath, exCategory, exName));
|
||||||
#elif defined(PLATFORM_DRM)
|
#elif defined(PLATFORM_DRM)
|
||||||
LOG("INFO: [%s] Building example for PLATFORM_DRM (Host: POSIX)\n", exName);
|
LOG("INFO: [%s] Building example for PLATFORM_DRM (Host: POSIX)\n", exName);
|
||||||
system(TextFormat("make -C %s %s/%s PLATFORM=PLATFORM_DRM -B > %s/%s/logs/%s.build.log 2>&1",
|
system(TextFormat("make -C %s %s/%s PLATFORM=PLATFORM_DRM -B > %s/%s/logs/%s.build.log 2>&1",
|
||||||
exBasePath, exCategory, exName, exBasePath, exCategory, exName));
|
exBasePath, exCategory, exName, exBasePath, exCategory, exName));
|
||||||
#else
|
#else
|
||||||
LOG("INFO: [%s] Building example for PLATFORM_DESKTOP (Host: POSIX)\n", exName);
|
LOG("INFO: [%s] Building example for PLATFORM_DESKTOP (Host: POSIX)\n", exName);
|
||||||
system(TextFormat("make -C %s %s/%s PLATFORM=PLATFORM_DESKTOP -B > %s/%s/logs/%s.build.log 2>&1",
|
system(TextFormat("make -C %s %s/%s PLATFORM=PLATFORM_DESKTOP -B > %s/%s/logs/%s.build.log 2>&1",
|
||||||
exBasePath, exCategory, exName, exBasePath, exCategory, exName));
|
exBasePath, exCategory, exName, exBasePath, exCategory, exName));
|
||||||
#endif
|
#endif
|
||||||
// Restore original source code before continue
|
// Restore original source code before continue
|
||||||
@ -1814,7 +1814,7 @@ int main(int argc, char *argv[])
|
|||||||
if ((testing[i].buildwarns > 0) || (testing[i].warnings > 0) || (testing[i].status > 0))
|
if ((testing[i].buildwarns > 0) || (testing[i].warnings > 0) || (testing[i].status > 0))
|
||||||
{
|
{
|
||||||
repIndex += sprintf(report + repIndex, "| %-32s | %i | %i | %s | %s | %s | %s | %s | %s | %s |\n",
|
repIndex += sprintf(report + repIndex, "| %-32s | %i | %i | %s | %s | %s | %s | %s | %s | %s |\n",
|
||||||
exBuildList[i],
|
exBuildList[i],
|
||||||
testing[i].buildwarns,
|
testing[i].buildwarns,
|
||||||
testing[i].warnings,
|
testing[i].warnings,
|
||||||
(testing[i].status & TESTING_FAIL_INIT)? "❌" : "✔",
|
(testing[i].status & TESTING_FAIL_INIT)? "❌" : "✔",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user