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/netcfg.cpp

    r494 r512  
    1010
    1111#include "config.h"
     12
     13#include "common.h"
    1214
    1315#include "game.h"
     
    262264
    263265  image *ns=cache.img(cache.reg("art/frame.spe","net_screen",SPEC_IMAGE,1));
    264   int ns_w=ns->width(),ns_h=ns->height();
     266  int ns_w=ns->Size().x,ns_h=ns->Size().y;
    265267  int x=(xres+1)/2-ns_w/2,y=(yres+1)/2-ns_h/2;
    266268  ns->put_image(screen,x,y);
     
    270272
    271273  uint8_t *sl=screen->scan_line(0);
    272   int xx=screen->width()*screen->height();
     274  int xx=screen->Size().x*screen->Size().y;
    273275  for (; xx; xx--,sl++) *sl=remap[*sl];
    274276
     
    327329{
    328330  image *ns=cache.img(cache.reg("art/frame.spe","net_screen",SPEC_IMAGE,1));
    329   int ns_w=ns->width(),ns_h=ns->height();
     331  int ns_w=ns->Size().x,ns_h=ns->Size().y;
    330332  int x=(xres+1)/2-ns_w/2,y=(yres+1)/2-ns_h/2;
    331333  ns->put_image(screen,x,y);
     
    446448
    447449  image *ns=cache.img(cache.reg("art/frame.spe","net_screen",SPEC_IMAGE,1));
    448   int ns_w=ns->width(),ns_h=ns->height();
     450  int ns_w=ns->Size().x,ns_h=ns->Size().y;
    449451  int x=(xres+1)/2-ns_w/2,y=(yres+1)/2-ns_h/2;
    450452  ns->put_image(screen,x,y);
Note: See TracChangeset for help on using the changeset viewer.