Permalink
Browse files

Fixes to run in 1.9 mode.

  • Loading branch information...
1 parent 6e2c10b commit be3f198ac2de3de381d0933da4b95566c76206f4 @headius committed Aug 26, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 escape/gui/bitmap.rb
  2. +1 −1 escape/gui/screen.rb
View
@@ -1,3 +1,4 @@
+# encoding: UTF-8
class Bitmap
attr_accessor :pixels
attr_reader :height, :width
View
@@ -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

0 comments on commit be3f198

Please sign in to comment.