Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes to run in 1.9 mode.

  • Loading branch information...
commit be3f198ac2de3de381d0933da4b95566c76206f4 1 parent 6e2c10b
@headius authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  escape/gui/bitmap.rb
  2. +1 −1  escape/gui/screen.rb
View
1  escape/gui/bitmap.rb
@@ -1,3 +1,4 @@
+# encoding: UTF-8
class Bitmap
attr_accessor :pixels
attr_reader :height, :width
View
2  escape/gui/screen.rb
@@ -86,7 +86,7 @@ def render(game, has_focus)
def render_entering(game)
fill 0, 0, @width, @height, 0
messages = "Entering " + game.level.name
- messages.each_with_index do |msg, y|
+ messages.lines.each_with_index do |msg, y|
draw_string(msg, (@width - msg.length * 6) / 2, (@viewport.height - messages.length * 8) / 2 + y * 8 + 1, 0x111111)
draw_string(msg, (@width - msg.length * 6) / 2, (@viewport.height - messages.length * 8) / 2 + y * 8, 0x555544)
end
Please sign in to comment.
Something went wrong with that request. Please try again.