Permalink
Browse files

support rendering mode.

  • Loading branch information...
1 parent 02ec92b commit 659a4228879a152d5380fdeb2071ea19b79b22b1 @kou kou committed Dec 22, 2010
Showing with 6 additions and 1 deletion.
  1. +6 −1 app.rb
View
7 app.rb
@@ -99,7 +99,7 @@ def prepare_real_name(name)
end
end
-def render_to_surface(surface, scale, paper, info, font)
+def render_to_surface_big(surface, scale, paper, info, font)
margin = paper.width * 0.03
image_width = image_height = paper.width * 0.3
@@ -168,6 +168,11 @@ def render_to_surface(surface, scale, paper, info, font)
context.show_page
end
+def render_to_surface(surface, scale, paper, info, font)
+ send("render_to_surface_#{@@configurations[:rendering_mode]}",
+ surface, scale, paper, info, font)
+end
+
def user_info(user_name)
@@user_info_cache[user_name] || retrieve_user_info(user_name)
end

0 comments on commit 659a422

Please sign in to comment.