Ignore:
Timestamp:
Aug 17, 2013, 12:01:38 PM (9 years ago)
Author:
Sam Hocevar
Message:

imlib: refactor the image class; no more locks or paging.

File:
1 edited

Legend:

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

    r687 r709  
    2323#include "sprite.h"
    2424
    25 ASprite::ASprite(image *screen, image *visual, ivec2 pos)
     25ASprite::ASprite(AImage *screen, AImage *visual, ivec2 pos)
    2626{
    2727    ASSERT(visual);
     
    3131    m_visual = visual;
    3232    m_screen = screen;
    33     m_save = new image(visual->Size());
     33    m_save = new AImage(visual->Size());
    3434
    3535    if (m_pos + visual->Size() >= ivec2(0) && m_pos < ivec2(xres, yres))
     
    4242}
    4343
    44 void ASprite::SetVisual(image *visual, int delete_old)
     44void ASprite::SetVisual(AImage *visual, int delete_old)
    4545{
    4646    if (delete_old)
     
    5050    {
    5151        delete m_save;
    52         m_save = new image(visual->Size());
     52        m_save = new AImage(visual->Size());
    5353    }
    5454
Note: See TracChangeset for help on using the changeset viewer.