    # File lib/rubygame/screen.rb, line 134
        def get_resolution
          if( Rubygame.init_video_system() != 0 )
            raise(Rubygame::SDLError, "Could not initialize SDL video subsystem.")
          end

          unless SDL.GetVideoSurface().pointer.null?
            raise( Rubygame::SDLError, "You cannot get resolution when there " +
                   "is an open Screen. See the docs for the reason." )
          end

          info = SDL::GetVideoInfo()
          if( info.pointer.null? )
            raise Rubygame::SDLError, "Couldn't get video info: #{SDL.GetError()}"
          end

          return [info.current_w, info.current_h]
        end