Ignore:
Timestamp:
Apr 22, 2011, 4:13:04 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: some cleaning up in trans_image before I templatise half of it.

File:
1 edited

Legend:

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

    r524 r527  
    13511351    case 123 : current_object->set_fxacel(lnumber_value(CAR(args))); break;
    13521352    case 124 : current_object->set_fyacel(lnumber_value(CAR(args))); break;
    1353     case 125 : return current_object->picture()->width(); break;
    1354     case 126 : return current_object->picture()->height(); break;
     1353    case 125 : return current_object->picture()->Size().x; break;
     1354    case 126 : return current_object->picture()->Size().y; break;
    13551355    case 127 : { dprintf("trap\n"); } break;   // I use this to set gdb break points
    13561356    case 128 : { return current_level->platform_push(current_object,lnumber_value(CAR(args)),
     
    15001500      game_object *o=(game_object *)lpointer_value(CAR(args));
    15011501      int32_t x=o->x-current_object->x,
    1502         y=-(o->y-o->picture()->height()/2-(current_object->y-(current_object->picture()->height()/2)));
     1502        y=-(o->y-o->picture()->Size().y/2-(current_object->y-(current_object->picture()->Size().y/2)));
    15031503      return lisp_atan2(y,x);
    15041504    } break;
Note: See TracChangeset for help on using the changeset viewer.