From b5742225aeb6307ff91402dbebe7b113957b827a Mon Sep 17 00:00:00 2001 From: Hugo ARNAL Date: Wed, 8 Oct 2025 00:03:33 +0200 Subject: [PATCH] Follow raylib's conventions --- examples/core/core_directory_files.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/core/core_directory_files.c b/examples/core/core_directory_files.c index 9fc6cc9aa..f0cf9f35a 100644 --- a/examples/core/core_directory_files.c +++ b/examples/core/core_directory_files.c @@ -44,13 +44,12 @@ int main(void) // Draw //---------------------------------------------------------------------------------- BeginDrawing(); - ClearBackground(RAYWHITE); DrawText(TextFormat("Files in directory \"%s\":", directory), 100, 40, 20, DARKGRAY); for (int i = 0; i < (int)files.count; i++) { - float alpha = i % 2 == 0 ? 0.5f : 0.3f; + float alpha = (i % 2 == 0)? 0.5f : 0.3f; DrawRectangle(0, 85 + 40*i, screenWidth, 40, Fade(LIGHTGRAY, alpha)); DrawText(files.paths[i], 120, 100 + 40*i, 10, GRAY);