Ignore:
Timestamp:
May 14, 2011, 3:06:23 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: make some Image methods use vec2i.

File:
1 edited

Legend:

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

    r644 r650  
    829829    player_draw(just_fired,o->get_tint());
    830830    if (o->controller() && o->controller()->local_player())
    831       main_screen->PutImage(cache.img(S_health_image), o->controller()->cx2-20,
    832                             o->controller()->cy1+5,1);
     831      main_screen->PutImage(cache.img(S_health_image),
     832                            vec2i(o->controller()->cx2-20,
     833                                  o->controller()->cy1+5), 1);
    833834      } break;
    834835      case FAST_POWER :
     
    850851    o->state=(character_state)old_state;
    851852    if (o->controller() && o->controller()->local_player())
    852       main_screen->PutImage(cache.img(S_fast_image), o->controller()->cx2-20,
    853                             o->controller()->cy1+5,1);
     853      main_screen->PutImage(cache.img(S_fast_image),
     854                            vec2i(o->controller()->cx2-20,
     855                                  o->controller()->cy1+5), 1);
    854856      } break;
    855857      case FLY_POWER :
     
    871873
    872874    if (o->controller() && o->controller()->local_player())
    873       main_screen->PutImage(cache.img(S_fly_image), o->controller()->cx2-20,
    874                             o->controller()->cy1+5,1);
     875      main_screen->PutImage(cache.img(S_fly_image),
     876                            vec2i(o->controller()->cx2-20,
     877                                  o->controller()->cy1+5), 1);
    875878      } break;
    876879      case SNEAKY_POWER :
     
    884887
    885888    if (o->controller() && o->controller()->local_player())
    886       main_screen->PutImage(cache.img(S_sneaky_image), o->controller()->cx2-20,
    887                             o->controller()->cy1+5,1);
     889      main_screen->PutImage(cache.img(S_sneaky_image),
     890                            vec2i(o->controller()->cx2-20,
     891                                  o->controller()->cy1+5), 1);
    888892      } break;
    889893    }
     
    10481052  main_screen->clear();
    10491053  image *im=cache.img(cache.reg("art/frame.spe","end_level_screen",SPEC_IMAGE,1));
    1050   main_screen->PutImage(im, 0, 0);
     1054  main_screen->PutImage(im, vec2i(0, 0));
    10511055  int x1=im->Size().x+1,y1=0,y2=main_screen->Size().y;
    10521056  JCFont *fnt=wm->font();
Note: See TracChangeset for help on using the changeset viewer.