summaryrefslogtreecommitdiffstats
path: root/libdimension/canvas.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/canvas.c')
-rw-r--r--libdimension/canvas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/canvas.c b/libdimension/canvas.c
index 257f1a9..49096fc 100644
--- a/libdimension/canvas.c
+++ b/libdimension/canvas.c
@@ -111,8 +111,8 @@ dmnsn_get_pixel(const dmnsn_canvas *canvas, unsigned int x, unsigned int y)
}
void
-dmnsn_set_pixel(dmnsn_canvas *canvas, dmnsn_color color,
- unsigned int x, unsigned int y)
+dmnsn_set_pixel(dmnsn_canvas *canvas,
+ unsigned int x, unsigned int y, dmnsn_color color)
{
dmnsn_wrlock_pixel(canvas, x, y);
canvas->pixels[y*canvas->x + x] = color;