From 030b78f7056b35ab53765212ee3ce94c5835a975 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 7 Jan 2023 00:22:57 +0100 Subject: Use const for arg --- src/graphics/rectangle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/graphics/rectangle.c b/src/graphics/rectangle.c index c6b2126..879e0dd 100644 --- a/src/graphics/rectangle.c +++ b/src/graphics/rectangle.c @@ -1,7 +1,7 @@ #include "../../include/mgl/graphics/rectangle.h" #include "../../include/mgl/mgl.h" -void mgl_rectangle_draw(mgl_context *context, mgl_rectangle *rect) { +void mgl_rectangle_draw(mgl_context *context, const mgl_rectangle *rect) { context->gl.glColor4ub(rect->color.r, rect->color.g, rect->color.b, rect->color.a); context->gl.glBegin(GL_QUADS); context->gl.glVertex3f(rect->position.x, rect->position.y, 0.0f); -- cgit v1.2.3