Displaying 1 result from an estimated 1 matches for "actualscale".
2006 Oct 17
0
[680] trunk/wxruby2/samples/printing/printing.rb: Cleaned up to use the Ruby naming convention, added #! line, now uses Wx default ID''s in standard menu items.
...maxX)
- scaleY=(h/maxY)
</del><ins>+ scale_x=(w/max_x)
+ scale_y=(h/max_y)
</ins><span class="cx">
</span><span class="cx"> # Use x or y scaling factor, whichever fits on the DC
</span><span class="cx"> #actualScale = Wx::min(scaleX,scaleY)
</span><del>- if scaleX < scaleY
- actualScale = scaleX
</del><ins>+ if scale_x < scale_y
+ actual_scale = scale_x
</ins><span class="cx"> else
</span><del>- actualScale = scaleY
</d...