Skip to content

Commit

Permalink
Break render loop when out of frames
Browse files Browse the repository at this point in the history
  • Loading branch information
mistydemeo committed Apr 4, 2013
1 parent 78ea300 commit 7139dad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hotline
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ buf.start

buf << na

setpos(0,0)
image = video[n]
break unless image

setpos(0,0)
image.lines.each_slice(2).with_index do |lines, index|
lines.each_with_index do |l,i|
setpos(index*2+i,0)
Expand Down

0 comments on commit 7139dad

Please sign in to comment.