# File lib/sdl.rb, line 148 def convertRect(rect) case rect when NilClass return Rect.new( 0, 0, 0, 0 ) when Array return Rect.new( rect[0], rect[1], rect[2], rect[3] ) else return rect end end