Ignore:
Timestamp:
May 15, 2011, 6:22:08 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: refactor a few image methods so that they use vec2i.

File:
1 edited

Legend:

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

    r651 r655  
    12941294      the_game->game_to_mouse(x1,y1,current_view,cx1,cy1);
    12951295      the_game->game_to_mouse(x2,y2,current_view,cx2,cy2);
    1296       main_screen->line(cx1,cy1,cx2,cy2,c);
     1296      main_screen->Line(vec2i(cx1, cy1), vec2i(cx2, cy2), c);
    12971297      return 1;
    12981298    } break;
     
    20442044      int32_t cy2=lnumber_value(CAR(args)); args=lcdr(args);
    20452045      int32_t c1=lnumber_value(CAR(args)); args=lcdr(args);
    2046       main_screen->bar(cx1,cy1,cx2,cy2,c1);
     2046      main_screen->Bar(vec2i(cx1, cy1), vec2i(cx2, cy2), c1);
    20472047    } break;
    20482048    case 248 :
     
    22182218      int32_t y2=lnumber_value(CAR(args));   args=CDR(args);
    22192219      int32_t c=lnumber_value(CAR(args));
    2220       main_screen->bar(x1,y1,x2,y2,c);
     2220      main_screen->Bar(vec2i(x1, y1), vec2i(x2, y2), c);
    22212221    } break;
    22222222    case 283 :
     
    22272227      int32_t y2=lnumber_value(CAR(args));   args=CDR(args);
    22282228      int32_t c=lnumber_value(CAR(args));
    2229       main_screen->rectangle(x1,y1,x2,y2,c);
     2229      main_screen->Rectangle(vec2i(x1, y1), vec2i(x2, y2), c);
    22302230    } break;
    22312231    case 284 :
Note: See TracChangeset for help on using the changeset viewer.