Hello.

I use clutter 1.4 stable version.
I've encountered a bug possibly somewhere in my app which uses clutter cairo 
texture.
The contents of a texture showing up with a negative offset on y axis (about 
150-200px).
Events work fine as if the drawing did not have any offset.
I get various info to help debug this bug.

   cairo_t *ctx = clutter_cairo_texture_create(CLUTTER_CAIRO_TEXTURE(web_view));
   cairo_surface_t *surf = cairo_get_target(ctx);
   cairo_surface_get_device_offset(surf, &offsX, &offsY);
   printf("Surface device offset: %.2f %.2f\n", offsX, offsY);

   cairo_matrix_t m;
   cairo_get_matrix(ctx, &m);

   printf("Transformation matrix:\n%7.2f %7.2f\n%7.2f %7.2f\n%7.2f %7.2f\n", 
m.xx, m.yx, m.xy, m.yy, m.x0, m.y0);

   paint(ctx);

   clutter_actor_get_position(CLUTTER_ACTOR(web_view), &posX, &posY);
   printf("Position: %.2f %.2f\n", posX, posY);

The output is like this:
Surface device offset: 0.00 0.00
Transformation matrix:
  1.00    0.00
  0.00    1.00
  0.00    0.00
Position: 0.00 0.00

Where can I find the source of this bug? Please help me.

Thank you,
Viatcheslav Gachkaylo, Crystalnix 


_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to