# File lib/rubygame/surface.rb, line 487 def clip=( newclip ) newclip = case newclip when nil, SDL::Rect newclip # no change when Rubygame::Rect newclip.to_sdl when Array Rubygame::Rect.new(newclip).to_sdl end SDL.SetClipRect(@struct, newclip) return self end