implements PLN-0087
This commit is contained in:
@@ -661,9 +661,7 @@ impl Gfx {
|
||||
self.load_frame_sprites(&sprites);
|
||||
self.render_no_scene_frame();
|
||||
|
||||
for command in &packet.gfx2d {
|
||||
self.apply_gfx2d_command(command);
|
||||
}
|
||||
self.apply_gfx2d_commands(&packet.gfx2d);
|
||||
}
|
||||
|
||||
pub fn render_shell_ui_frame_packet(&mut self, packet: &ShellUiFramePacket) {
|
||||
@@ -672,6 +670,12 @@ impl Gfx {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn apply_gfx2d_commands(&mut self, commands: &[Gfx2dCommand]) {
|
||||
for command in commands {
|
||||
self.apply_gfx2d_command(command);
|
||||
}
|
||||
}
|
||||
|
||||
fn apply_gfx2d_command(&mut self, command: &Gfx2dCommand) {
|
||||
match command {
|
||||
Gfx2dCommand::Clear { color } => self.clear(*color),
|
||||
|
||||
Reference in New Issue
Block a user