Displaying 1 result from an estimated 1 matches for "y_chars".
Did you mean:
x_chars
2007 Apr 29
0
[981] branches/wxruby2/wxwidgets_282/samples/caret/caret.rb: Don''t call PaintDC.new; just refresh() instead of duplicating paint code
...uot;>
</span><del>- dc = PaintDC.new(self)
- prepare_dc(dc)
- dc.clear
</del><ins>+ paint do | dc |
+ dc.clear
+ dc.set_font(@font)
</ins><span class="cx">
</span><del>- dc.set_font(@font)
-
- for y in 0 ... @y_chars
- line = @text[@x_chars * y,@x_chars]
- dc.draw_text( line, @x_margin, @y_margin + y * @height_char )
</del><ins>+ for y in 0 ... @y_chars
+ line = @text[@x_chars * y,@x_chars]
+ dc.draw_text( line, @x_margin, @y_margin + y * @height_char )
+ end
</i...