Skip to content

Commit ba9910e

Browse files
committed
fix string format
1 parent 93a7fb9 commit ba9910e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

external_library/gems/ruby_wordcram/render_to_buffer.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ def draw_progress_bar(progress)
4444
rect(100, (height / 2) - 30, (width - 200), 60)
4545
# Fill in the portion that's done:
4646
fill(gray)
47-
rect(100, (height/2)-30, (width-200) * progress, 60)
47+
rect(100, (height / 2) - 30, (width - 200) * progress, 60)
4848
end
4949

50-
def draw_progress_text(progress)
51-
text(format('%d%', (progress * 100).round), width / 2, (height / 2) + 50)
50+
def draw_progress_text(progress = 0)
51+
text "#{(progress * 100).round}%", width / 2, (height / 2) + 50
5252
end
5353

5454
def settings

0 commit comments

Comments
 (0)