Ignore:
Timestamp:
Jul 30, 2013, 4:20:28 PM (9 years ago)
Author:
Sam Hocevar
Message:

build: port everything to the current Lol Engine API.

File:
1 edited

Legend:

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

    r682 r686  
    2323#include "sprite.h"
    2424
    25 Sprite::Sprite(image *screen, image *visual, ivec2 pos)
     25ASprite::ASprite(image *screen, image *visual, ivec2 pos)
    2626{
    2727    CHECK(visual && screen);
     
    3131    m_save = new image(visual->Size());
    3232
    33     if (m_pos + visual->Size() >= 0 && m_pos < ivec2(xres, yres))
    34         m_save->PutPart(m_screen, ivec2(0,0), m_pos, m_pos + m_save->Size());
     33    if (m_pos + visual->Size() >= ivec2(0) && m_pos < ivec2(xres, yres))
     34        m_save->PutPart(m_screen, ivec2(0), m_pos, m_pos + m_save->Size());
    3535}
    3636
    37 Sprite::~Sprite()
     37ASprite::~ASprite()
    3838{
    3939    delete m_save;
    4040}
    4141
    42 void Sprite::SetVisual(image *visual, int delete_old)
     42void ASprite::SetVisual(image *visual, int delete_old)
    4343{
    4444    if (delete_old)
     
    5151    }
    5252
    53     if (m_pos + visual->Size() >= 0 && m_pos < ivec2(xres, yres))
    54         m_save->PutPart(m_screen, ivec2(0,0), m_pos, m_pos + m_save->Size());
     53    if (m_pos + visual->Size() >= ivec2(0) && m_pos < ivec2(xres, yres))
     54        m_save->PutPart(m_screen, ivec2(0), m_pos, m_pos + m_save->Size());
    5555}
    5656
Note: See TracChangeset for help on using the changeset viewer.