Hello Sandro,

Monday, July 30, 2007, 11:26:40 PM, you wrote:
SS> +triangulating_render_handler::world_to_pixel(const rect& worldbounds)
SS>  {
SS> +  // TODO: verify this is correct
SS> +  geometry::Range2d<int> ret(worldbounds.getRange());
SS> +  ret.scale(20); // twips to pixels
SS> +  return ret;
SS>  }
SS>  


Hmm. I fear this is not 100% correct. It will work for 100% scaled
movies / GUI windows, but probably will fail for scaled movies (ie.
when using the -s switch).

I had a quick look at render_handler_tri but could not yet find out
how scaling is implemented: Can't remember if this is done by each
renderer individually. AFAIK only AGG currently respects the "stage
matrix" defined by the GUI.

I'll try to find out... :)

Udo



_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit

Reply via email to