From b30bb575a1c63312d114927634d9066f7c1445a9 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Mon, 23 Mar 2009 11:39:40 +0000 Subject: [PATCH] [cogl_rectangles] A minor doc fix, and missing newline between functions The gtk-doc had a copy and paste error, saying the float array should be 8 elements per rectangle instead of 4. There was also no newline in the gles code before the new function. --- clutter/cogl/cogl-texture.h | 2 +- clutter/cogl/gles/cogl-texture.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/clutter/cogl/cogl-texture.h b/clutter/cogl/cogl-texture.h index db239428e..4befd811d 100644 --- a/clutter/cogl/cogl-texture.h +++ b/clutter/cogl/cogl-texture.h @@ -488,7 +488,7 @@ void cogl_rectangles_with_texture_coords (const float *verts, * calling cogl_rectangle() separately for each rectangle. * * @verts should point to an array of #floats with - * @n_rects * 8 elements. Each group of 4 values corresponds to the + * @n_rects * 4 elements. Each group of 4 values corresponds to the * parameters x1, y1, x2, and y2, and have the same * meaning as in cogl_rectangle(). * diff --git a/clutter/cogl/gles/cogl-texture.c b/clutter/cogl/gles/cogl-texture.c index 9a5181221..575829336 100644 --- a/clutter/cogl/gles/cogl-texture.c +++ b/clutter/cogl/gles/cogl-texture.c @@ -2843,6 +2843,7 @@ _cogl_rectangles_with_multitexture_coords ( _cogl_journal_flush (); } + void cogl_rectangles (const float *verts, guint n_rects)