From 065994219e32e661bd92c2933b70c9573b82fff0 Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 6 Nov 2018 16:11:11 +0100 Subject: [PATCH] Review parameter issue with MSVC --- src/raylib.h | 2 +- src/shapes.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raylib.h b/src/raylib.h index 5b68c0be..6b237f07 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -970,7 +970,7 @@ RLAPI void DrawCircleLines(int centerX, int centerY, float radius, Color color); RLAPI void DrawRectangle(int posX, int posY, int width, int height, Color color); // Draw a color-filled rectangle RLAPI void DrawRectangleV(Vector2 position, Vector2 size, Color color); // Draw a color-filled rectangle (Vector version) RLAPI void DrawRectangleRec(Rectangle rec, Color color); // Draw a color-filled rectangle -RLAPI void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color colors[static 4]); // Draw a color-filled rectangle with pro parameters +RLAPI void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color colors[4]); // Draw a color-filled rectangle with pro parameters RLAPI void DrawRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2);// Draw a vertical-gradient-filled rectangle RLAPI void DrawRectangleGradientH(int posX, int posY, int width, int height, Color color1, Color color2);// Draw a horizontal-gradient-filled rectangle RLAPI void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4); // Draw a gradient-filled rectangle with custom vertex colors diff --git a/src/shapes.c b/src/shapes.c index 69331445..77c141d1 100644 --- a/src/shapes.c +++ b/src/shapes.c @@ -276,7 +276,7 @@ void DrawRectangleRec(Rectangle rec, Color color) } // Draw a color-filled rectangle with pro parameters -void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color colors[static 4]) +void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color colors[4]) { rlEnableTexture(GetShapesTexture().id);