Core-window: Removes deprecated toggle_fullscreen method (#8300)

This commit is contained in:
Lucas Couto 2023-07-16 11:43:01 -03:00 committed by GitHub
parent dc5c949506
commit 7e9affd6f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 24 deletions

View File

@ -1180,15 +1180,6 @@ class WindowBase(EventDispatcher):
'''
pass
@deprecated
def toggle_fullscreen(self):
'''Toggle between fullscreen and windowed mode.
.. deprecated:: 1.9.0
Use :attr:`fullscreen` instead.
'''
pass
def maximize(self):
'''Maximizes the window. This method should be used on desktop
platforms only.

View File

@ -284,14 +284,6 @@ class WindowPygame(WindowBase):
pygame.display.flip()
super(WindowPygame, self).flip()
@deprecated
def toggle_fullscreen(self):
if self.flags & pygame.FULLSCREEN:
self.flags &= ~pygame.FULLSCREEN
else:
self.flags |= pygame.FULLSCREEN
self._pygame_set_mode()
def mainloop(self):
for event in pygame.event.get():

View File

@ -450,13 +450,6 @@ class WindowSDL(WindowBase):
else:
Logger.warning('Window: show() is used only on desktop OSes.')
@deprecated
def toggle_fullscreen(self):
if self.fullscreen in (True, 'auto'):
self.fullscreen = False
else:
self.fullscreen = 'auto'
def set_title(self, title):
self._win.set_window_title(title)