1
0
forked from Mirrors/RGSX

Suppression des rectangles de fond noir des popups et warnings dans display.py

This commit is contained in:
skymike03
2025-07-06 21:47:06 +02:00
parent 2fb2cf5470
commit 6f405b1c51

View File

@@ -13,8 +13,13 @@ 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):
"""Dessine un fond dégradé vertical."""
height = screen.get_height()