motion/core/device/screen.rb in bubble-wrap-0.4.0 vs motion/core/device/screen.rb in bubble-wrap-1.0.0.pre
- old
+ new
@@ -50,18 +50,18 @@
end
# The same as `.width` and `.height` but
# compensating for screen rotation (which
# can do your head in).
- def widthForOrientation(o=orientation)
+ def width_for_orientation(o=orientation)
return height if (o == :landscape_left) || (o == :landscape_right)
width
end
# The same as `.width` and `.height` but
# compensating for screen rotation (which
# can do your head in).
- def heightForOrientation(o=orientation)
+ def height_for_orientation(o=orientation)
return width if (o == :landscape_left) || (o == :landscape_right)
height
end
end
end