Pass canvas to draw_powerup
This commit is contained in:
parent
a55de34884
commit
f0707cb9bd
|
@ -139,7 +139,7 @@ void powerup_type_info_write(PHYSFS_File *fp, const powerup_type_info &pti);
|
|||
namespace dcx {
|
||||
|
||||
extern unsigned N_powerup_types;
|
||||
void draw_powerup(const object_base &obj);
|
||||
void draw_powerup(grs_canvas &, const object_base &obj);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -751,7 +751,7 @@ void render_object(const vobjptridx_t obj)
|
|||
break;
|
||||
}
|
||||
|
||||
draw_powerup(obj);
|
||||
draw_powerup(*grd_curcanv, obj);
|
||||
break;
|
||||
|
||||
case RT_LASER:
|
||||
|
|
|
@ -118,10 +118,10 @@ void do_powerup_frame(const vobjptridx_t obj)
|
|||
|
||||
namespace dcx {
|
||||
|
||||
void draw_powerup(const object_base &obj)
|
||||
void draw_powerup(grs_canvas &canvas, const object_base &obj)
|
||||
{
|
||||
auto &vci = obj.rtype.vclip_info;
|
||||
draw_object_blob(*grd_curcanv, obj, Vclip[vci.vclip_num].frames[vci.framenum]);
|
||||
draw_object_blob(canvas, obj, Vclip[vci.vclip_num].frames[vci.framenum]);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue