# File lib/rubygame/surface.rb, line 553
  def to_display
    newsurf =
      if( Rubygame.init_video_system() == 0 )
        SDL.DisplayFormat( @struct )
      else
        nil
      end

    if( newsurf.nil? or newsurf.pointer.null?)
      raise( Rubygame::SDLError,
             "Could not convert the Surface to display format: %s"%\
             SDL.GetError() )
    end

    # Wrap it
    return self.class.new( newsurf )
  end