gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] does _height work??


From: strk
Subject: Re: [Gnash-dev] does _height work??
Date: Tue, 10 Oct 2006 17:59:17 +0200

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
> address@hidden
> 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. 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]