# File lib/rubygame/surface.rb, line 256
  def set_colorkey( color, flags=Rubygame::SRCCOLORKEY )
    if color.nil?
      color, flags = 0, 0
    else
      color = _map_sdl_color( color )
    end

    result = SDL.SetColorKey(@struct, flags, color)
    raise Rubygame::SDLError, SDL.GetError() unless result == 0
    return self
  end