[gcompris-devel] new board

pgeorges pascal.georges1 at free.fr
Fri Feb 28 11:54:20 UTC 2003


I commited a new board under the fun group : submarine.

I encountered a lot of problems with widget rotation. In gnome 1.0 the 
API gnome_canvas_item_rotate has never been implemented and in gnome 2, 
it has been removed. I understand now why : there are some 
inconsistencies in gnome (for example gnome_canvas_item_get_bounds 
returns bad values). I spent many hours to get something working (and 
just working).

So be very careful if you use the 2 functions I put in gameutil.c :
void	item_rotate(GnomeCanvasItem *item, double angle);
void	item_rotate_with_center(GnomeCanvasItem *item, double angle, int x, 
int y);
in conjunction with translation (not just the order matters).

Pascal





More information about the Gcompris-devel mailing list