1
0
forked from ndyer/pygame-dvd

changed how small the mini logos can be

This commit is contained in:
Nicholas Dyer 2025-01-06 22:51:49 -05:00
parent 194852b77f
commit d779ea357e
Signed by: ndyer
GPG Key ID: B4FEDEE7298D2503

View File

@ -35,9 +35,9 @@ class SteamLogo(pygame.sprite.Sprite):
self.base_image.convert_alpha() self.base_image.convert_alpha()
logo_scaling = min(window_size) * SCALE_RATIO logo_scaling = min(window_size) * SCALE_RATIO
# If the logo is mini, make it 2 to 4 times smaller # If the logo is mini, make it 2 to 3 times smaller
if is_mini: if is_mini:
logo_scaling /= random.uniform(2, 4) logo_scaling /= random.uniform(2, 3)
self.base_image = pygame.transform.smoothscale(self.base_image, self.base_image = pygame.transform.smoothscale(self.base_image,
(self.base_image.get_width() * logo_scaling, (self.base_image.get_width() * logo_scaling,
self.base_image.get_height() * logo_scaling)) self.base_image.get_height() * logo_scaling))