lib/whirled_peas/command/still.rb in whirled_peas-0.11.1 vs lib/whirled_peas/command/still.rb in whirled_peas-0.12.0
- old
+ new
@@ -1,5 +1,7 @@
+require 'whirled_peas/device/rendered_frame'
+
require_relative 'frame_command'
module WhirledPeas
module Command
# Display a still frame with the specified arguments.
@@ -14,15 +16,17 @@
require 'whirled_peas/device/screen'
require 'whirled_peas/graphics/renderer'
require 'whirled_peas/utils/ansi'
Utils::Ansi.with_screen do |width, height|
- rendered = Graphics::Renderer.new(
+ strokes = Graphics::Renderer.new(
WhirledPeas.config.template_factory.build(frame, frame_args),
width,
height
).paint
- Device::Screen.new(10000).handle_renders([rendered])
+ Device::Screen.new.handle_rendered_frames(
+ [Device::RenderedFrame.new(strokes, 0)]
+ )
end
end
end
end
end