Ignore:
Timestamp:
Apr 22, 2011, 7:32:05 PM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: simplify trans_image::make_image and rewrite the constructor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/timage.h

    r530 r531  
    2626{
    2727public:
    28   trans_image(image *im, char const *name);  // name has no meaning if MEM_CHECK is off
     28  trans_image(image *im, char const *name);
     29  ~trans_image();
    2930
    3031  inline vec2i Size() { return m_size; }
    31   uint8_t *Data() { return m_data; }
     32  inline uint8_t *Data() { return m_data; }
     33
     34  image *ToImage();
    3235
    3336  void PutImage(image *screen, int x, int y); // always transparent
     
    4750  void put_scan_line(image *screen, int x, int y, int line);   // always transparent
    4851  size_t MemUsage();
    49   image *make_image();
    50   ~trans_image();
    5152
    5253private:
Note: See TracChangeset for help on using the changeset viewer.