Ignore:
Timestamp:
Sep 23, 2013, 11:03:03 PM (9 years ago)
Author:
Sam Hocevar
Message:

core: use vec2::zero and ivec2::zero in a few places.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/branches/lol/src/imlib/sprite.cpp

    r711 r719  
    3232    m_save = new AImage(visual->Size());
    3333
    34     if (m_pos + visual->Size() >= ivec2(0) && m_pos < ivec2(xres, yres))
    35         m_save->PutPart(m_screen, ivec2(0), m_pos, m_pos + m_save->Size());
     34    if (m_pos + visual->Size() >= ivec2::zero && m_pos < ivec2(xres, yres))
     35        m_save->PutPart(m_screen, ivec2::zero, m_pos, m_pos + m_save->Size());
    3636}
    3737
     
    5252    }
    5353
    54     if (m_pos + visual->Size() >= ivec2(0) && m_pos < ivec2(xres, yres))
    55         m_save->PutPart(m_screen, ivec2(0), m_pos, m_pos + m_save->Size());
     54    if (m_pos + visual->Size() >= ivec2::zero && m_pos < ivec2(xres, yres))
     55        m_save->PutPart(m_screen, ivec2::zero, m_pos, m_pos + m_save->Size());
    5656}
    5757
Note: See TracChangeset for help on using the changeset viewer.