corrected the position of the fx_mode letters

This commit is contained in:
SallarShayegan
2025-02-25 21:00:58 +01:00
parent 7890c91bd7
commit 3963f404f6

View File

@ -30,7 +30,8 @@ class LozengeButton:
else:
w = 2
fx_mode_label = font_helvetica16.render(str(self.name)[0:1], False, color_primary)
self.screen.blit(fx_mode_label, (self.x - 4, self.y - 7))
self.screen.blit(fx_mode_label, (self.x - fx_mode_label.get_width()/2 + 1,
self.y - fx_mode_label.get_height()/2 + 1))
pygame.draw.polygon(self.screen, color_primary,
[(self.x - self.radius_x, self.y),
(self.x, self.y - self.radius_y),