Ignore:
Timestamp:
Apr 20, 2011, 12:39:27 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: use vec2i for image::size and unroll all necessary changes
everywhere else in the code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/level.cpp

    r497 r512  
    1818#include <limits.h>
    1919#include <time.h>
     20
     21#include "common.h"
    2022
    2123#include "light.h"
     
    16541656  wm->font()->put_string(i,80-strlen(buf)*wm->font()->width()/2,100+wm->font()->height(),buf);
    16551657
    1656   fp->write_uint16(i->width());
    1657   fp->write_uint16(i->height());
     1658  fp->write_uint16(i->Size().x);
     1659  fp->write_uint16(i->Size().y);
    16581660
    16591661  i->lock();
    1660   for(int y = 0; y < i->height(); y++)
    1661     fp->write(i->scan_line(y),i->width());
     1662  for(int y = 0; y < i->Size().y; y++)
     1663    fp->write(i->scan_line(y),i->Size().x);
    16621664  i->unlock();
    16631665
Note: See TracChangeset for help on using the changeset viewer.