Nicely spotted - will fix. Many thanks;
-- Matthew On Mon, 2007-06-18 at 13:30 +0300, Tommi Höynälänmaa wrote: > There may be something wrong with the implementations of function > cogl_rectangle and the code that uses it in clutter-rectangle.c. > > The last two arguments of the function are called "width" and "height". > However, the implementation in gl/cogl.c has a line > --- > GE( glRecti (x,y ,width, height) ); > --- > According to the OpenGL 2.1 specification the last two arguments of > Recti specify the coordinates of the bottom right corner of the > rectangle. Probably this has not been changed in the different OpenGL > versions. > > The implementation in gles/cogl.c uses the width and height arguments as > width and height of the rectangle. > > The code in clutter-rectangle.c seems to assume that the last two > arguments of cogl_rectangle mean the coordinates of the bottom right > corner instead of the width and the height. > > There is a call to cogl_rectangle in function cogl_clip_set in gles/cogl.c: > --- > cogl_rectangle (clip->x, clip->y, clip->width, clip->height); > --- > This call seems to assume that the width and height arguments specify > the width and the height of the rectangle. > > -- > Tommi Höynälänmaa > sähköposti / e-mail: [EMAIL PROTECTED] > kotisivu / homepage: http://www.iki.fi/tohoyn/ > -- To unsubscribe send a mail to [EMAIL PROTECTED]
