Changeset 655 for abuse/trunk/src/dev.cpp
- Timestamp:
- May 15, 2011, 6:22:08 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/dev.cpp
r650 r655 147 147 virtual void scroll_event(int newx, image *screen) 148 148 { 149 screen-> bar(x,y,x+l-1,y+h-1,wm->dark_color());149 screen->Bar(vec2i(x, y), vec2i(x + l - 1, y + h - 1), wm->dark_color()); 150 150 char st[100]; 151 151 sprintf(st,"%d",newx); … … 484 484 main_screen->PutImage(im, vec2i(f->x - vx + v->cx1 - im->Size().x / 2, 485 485 f->y - vy + v->cy1 - im->Size().y / 2), 1); 486 main_screen-> rectangle(f->x1 - vx + v->cx1, f->y1 - vy + v->cy1,487 f->x2 - vx + v->cx1, f->y2 - vy + v->cy1,486 main_screen->Rectangle(vec2i(f->x1 - vx + v->cx1, f->y1 - vy + v->cy1), 487 vec2i(f->x2 - vx + v->cx1, f->y2 - vy + v->cy1), 488 488 wm->medium_color()); 489 489 } … … 495 495 int32_t rx1,ry1; 496 496 the_game->game_to_mouse(link_object->x,link_object->y,v,rx1,ry1); 497 main_screen-> line(rx1,ry1,dlastx,dlasty,yellow);497 main_screen->Line(vec2i(rx1, ry1), vec2i(dlastx, dlasty), yellow); 498 498 } 499 499 … … 504 504 int32_t rx1,ry1; 505 505 the_game->game_to_mouse(selected_light->x,selected_light->y,v,rx1,ry1); 506 main_screen->rectangle(rx1-l,ry1-h,rx1+l,ry1+h,wm->bright_color()); 506 main_screen->Rectangle(vec2i(rx1 - l, ry1 - h), vec2i(rx1 + l, ry1 + h), 507 wm->bright_color()); 507 508 } 508 509 … … 528 529 game_object *other=o->get_object(i); 529 530 the_game->game_to_mouse(other->x,other->y,current_view,x2,y2); 530 main_screen-> line(x1,y1,x2,y2,wm->bright_color());531 main_screen->Line(vec2i(x1, y1), vec2i(x2, y2), wm->bright_color()); 531 532 } 532 533 … … 535 536 light_source *l=o->get_light(i); 536 537 the_game->game_to_mouse(l->x,l->y,current_view,x2,y2); 537 main_screen-> line(x1,y1,x2,y2,light_connection_color);538 main_screen->Line(vec2i(x1, y1), vec2i(x2, y2), light_connection_color); 538 539 } 539 540 … … 547 548 the_game->game_to_mouse(x1,y1,v,rx1,ry1); 548 549 the_game->game_to_mouse(x2,y2,v,rx2,ry2); 549 main_screen->rectangle(rx1,ry1,rx2,ry2,wm->bright_color()); 550 main_screen->Rectangle(vec2i(rx1, ry1), vec2i(rx2, ry2), 551 wm->bright_color()); 550 552 551 553 the_game->game_to_mouse(selected_object->x,selected_object->y,current_view,x1,y1); … … 554 556 game_object *other=selected_object->get_object(i); 555 557 the_game->game_to_mouse(other->x,other->y,current_view,x2,y2); 556 main_screen-> line(x1,y1,x2,y2,light_connection_color);558 main_screen->Line(vec2i(x1, y1), vec2i(x2, y2), light_connection_color); 557 559 } 558 560 } … … 3017 3019 { 3018 3020 find=i; 3019 me->m_surf->rectangle(me->x1()+(i%w)*tw, 3020 me->y1()+(i/w)*th, 3021 me->x1()+(i%w)*tw+tw-1, 3022 me->y1()+(i/w)*th+th-1,wm->bright_color()); 3021 me->m_surf->Rectangle(vec2i(me->x1() + (i % w) * tw, 3022 me->y1() + (i / w) * th), 3023 vec2i(me->x1() + (i % w) * tw + tw - 1, 3024 me->y1() + (i / w) * th + th - 1), 3025 wm->bright_color()); 3023 3026 } 3024 3027 }
Note: See TracChangeset
for help on using the changeset viewer.