Ignore:
Timestamp:
May 15, 2011, 5:31:42 PM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: refactor image::PutPart? and image::PutPartMasked?, get rid of
unused methods image::PutPartXrev? and image::fill_image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/jwindow.cpp

    r659 r661  
    336336        vec2i m2 = m1 + m_sprite->visual->Size() - vec2i(1, 1);
    337337
    338         m_sprite->save->PutPart(m_surf, 0, 0, m1.x, m1.y, m2.x, m2.y);
     338        m_sprite->save->PutPart(m_surf, vec2i(0, 0), m1, m2);
    339339        m_surf->PutImage(m_sprite->visual, m1, 1);
    340340    }
     
    355355        if (has_mouse())
    356356        {
    357             m_sprite->save->PutPart(p->m_surf, 0, 0, m1.x - p->m_pos.x, m1.y - p->m_pos.y,
    358                                     m1.x - p->m_pos.x + m_sprite->visual->Size().x - 1,
    359                                     m1.y - p->m_pos.y + m_sprite->visual->Size().y - 1);
     357            m_sprite->save->PutPart(p->m_surf, vec2i(0, 0), m1 - p->m_pos,
     358                                    m1 - p->m_pos + m_sprite->visual->Size() - vec2i(1, 1));
    360359            p->m_surf->PutImage(m_sprite->visual, m1 - p->m_pos, 1);
    361360        }
Note: See TracChangeset for help on using the changeset viewer.