forked from Mirrors/RGSX
Suppression des rectangles de fond noir des popups et warnings dans display.py
This commit is contained in:
@@ -13,6 +13,11 @@ OVERLAY.fill((0, 0, 0, 180))
|
||||
def init_display():
|
||||
"""Initialise l’écran Pygame."""
|
||||
screen = pygame.display.set_mode((0, 0), pygame.FULLSCREEN)
|
||||
config.screen_width, config.screen_height = screen.get_size()
|
||||
# Redimensionner l'overlay pour correspondre à la résolution réelle
|
||||
global OVERLAY
|
||||
OVERLAY = pygame.Surface((config.screen_width, config.screen_height), pygame.SRCALPHA)
|
||||
OVERLAY.fill((0, 0, 0, 180))
|
||||
return screen
|
||||
|
||||
def draw_gradient(screen, top_color, bottom_color):
|
||||
|
||||
Reference in New Issue
Block a user