There seems to be another similar use in fontlib.cpp:502

  // Transform the coords.
  float   x_scale = s_render_matrix.m_[0][0];
  float   y_scale = s_render_matrix.m_[1][1];
  float   x_offset = s_render_matrix.m_[0][2];
  float   y_offset = s_render_matrix.m_[1][2]

--strk;

On Tue, Oct 10, 2006 at 04:18:06PM +0200, Udo Giacomozzi wrote:
> Hi,
> 
> I just noticed that the implementation of
> generic_character::get_height() seems to be wrong:
> 
>     virtual float       get_height()
>         {
>             matrix      m = get_world_matrix();
>             float       h = m_def->get_height_local() * m.m_[1][1];
>             return h;
>         }
> 
>     virtual float       get_width()
>         {
>             matrix      m = get_world_matrix();
>             float       w = m_def->get_width_local() * m.m_[0][0];
>             return w;
>         }
>         
> m.m_[x][1] is the rotation and m.m_[x][0] is the scale. So, in theory
> get_width() should work as expected but get_height() should return a
> wrong value.
> 
> Had no time to check this myself. Reading _height in ActionScript
> should return a wrong value.
> 
> Can somebody check this, please?
> 
> Udo
> 
> 
> 
> _______________________________________________
> Gnash-dev mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/gnash-dev

-- 

 /"\    ASCII Ribbon Campaign
 \ /    Respect for low technology.
  X     Keep e-mail messages readable by any computer system.
 / \    Keep it ASCII. 



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

Reply via email to