Changeset 512 for abuse/trunk/src/netcfg.cpp
- Timestamp:
- Apr 20, 2011, 12:39:27 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/netcfg.cpp
r494 r512 10 10 11 11 #include "config.h" 12 13 #include "common.h" 12 14 13 15 #include "game.h" … … 262 264 263 265 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; 265 267 int x=(xres+1)/2-ns_w/2,y=(yres+1)/2-ns_h/2; 266 268 ns->put_image(screen,x,y); … … 270 272 271 273 uint8_t *sl=screen->scan_line(0); 272 int xx=screen-> width()*screen->height();274 int xx=screen->Size().x*screen->Size().y; 273 275 for (; xx; xx--,sl++) *sl=remap[*sl]; 274 276 … … 327 329 { 328 330 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; 330 332 int x=(xres+1)/2-ns_w/2,y=(yres+1)/2-ns_h/2; 331 333 ns->put_image(screen,x,y); … … 446 448 447 449 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; 449 451 int x=(xres+1)/2-ns_w/2,y=(yres+1)/2-ns_h/2; 450 452 ns->put_image(screen,x,y);
Note: See TracChangeset
for help on using the changeset viewer.