Follow-up Comment #6, bug #21373 (project freeciv):

> I think the format assumption documented by that assertion in
> sprite_get_bounding_box() is at the mercy of the behaviour of
> cairo_image_surface_create_from_png() called from our
> load_gfxfile().

Adding fc_assert(cairo_image_surface_get_format(sprite->surface) ==
CAIRO_FORMAT_ARGB32); immediately after cairo_image_surface_create_from_png()
fails sometimes, so this indeed is the problem point. 

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?21373>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to