code: def resize(self, width, height):
          
          self.width = width
          self.height = height
          self.buffer_width, self.buffer_height = self.width, self.height
          self.set_default_viewport()
  
          super().resize(self.buffer_width, self.buffer_height)
docs: Sets the new size and buffer size internally