gnash-dev
[Top][All Lists]
Advanced

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

[Gnash-dev] does _height work??


From: Udo Giacomozzi
Subject: [Gnash-dev] does _height work??
Date: Tue, 10 Oct 2006 16:18:06 +0200

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





reply via email to

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