X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/blobdiff_plain/79aca379ed6dffa4d71d66f513a973d2e3470c5a..eb54dac20092c54228bdd9f227c7ad163bca382d:/src/minwii/widgets/column.py diff --git a/src/minwii/widgets/column.py b/src/minwii/widgets/column.py index 99f259f..d829152 100755 --- a/src/minwii/widgets/column.py +++ b/src/minwii/widgets/column.py @@ -7,7 +7,7 @@ $URL$ """ import pygame from math import floor -import minwii.gradients +import minwii.gradients as gradients from minwii.globals import BACKGROUND_LAYER from minwii.globals import FOREGROUND_LAYER from minwii.globals import hls_to_rgba_8bits @@ -20,7 +20,7 @@ from minwii.config import ON_COLUMN_OVERSIZING from minwii.config import ON_COLUMN_ALPHA from minwii.config import LYRICS_FONT, NOTES_FONT from minwii.config import FONT_COLOR -import minwii.events +import minwii.events as events class Column(pygame.sprite.DirtySprite) : @@ -72,9 +72,9 @@ class Column(pygame.sprite.DirtySprite) : if state : group.change_layer(self, FOREGROUND_LAYER) sur = self.surOn + rect = self.rectOn if syllabus : sur = sur.copy() - rect = self.rectOn renderedSyl = LYRICS_FONT.render(syllabus, True, FONT_COLOR) sw, sh, = renderedSyl.get_size() w, h = self.rectOn.w, self.rectOn.h