Ignore:
Timestamp:
Apr 22, 2011, 4:13:04 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: some cleaning up in trans_image before I templatise half of it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/items.h

    r512 r527  
    5454
    5555  foretile(bFILE *fp);
    56   int32_t size() { return im->width()*im->height()+4+2+1+points->size(); }
     56  int32_t size() { return im->Size().x*im->Size().y+4+2+1+points->size(); }
    5757  ~foretile() { delete im; delete points; delete micro_image; }
    5858} ;
     
    6666  point_list *hit;
    6767  boundary *f_damage,*b_damage;
    68   int size();
     68  size_t MemUsage();
    6969
    7070  figure(bFILE *fp, int type);
    71   int width() { return forward->width(); }
    72   int height() { return forward->height(); }
     71  int width() { return forward->Size().x; }
     72  int height() { return forward->Size().y; }
    7373
    74 /*  int32_t size(int type)         // taken from spaint items
    75   {
    76     if
    77     return forward->width()*backward->height()+4+
    78                        1+1+       // hit & xcfg
    79                touch->size()+
    80                hit->size()+
    81                damage->size();
    82   }*/
    83 
    84   ~figure() { delete forward; delete backward;
    85           delete hit;
    86           delete f_damage; delete b_damage; }
     74  ~figure() { delete forward; delete backward; delete hit;
     75              delete f_damage; delete b_damage; }
    8776} ;
    8877
Note: See TracChangeset for help on using the changeset viewer.