implements PLN-0087

This commit is contained in:
2026-06-05 09:33:22 +01:00
parent 6cb0918715
commit 51f6a36b1d
4 changed files with 41 additions and 7 deletions
+7 -3
View File
@@ -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),