File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ def scroll(self):
361
361
return
362
362
363
363
self ._text [self ._scrolling_index ].x = self ._text [self ._scrolling_index ].x - 1
364
- line_width = self ._text [self ._scrolling_index ].bounding_box [2 ]
364
+ line_width = self ._text [self ._scrolling_index ].bounding_box [2 ] * self . _text_scale [ self . _scrolling_index ]
365
365
if self ._text [self ._scrolling_index ].x < - line_width :
366
366
# Find the next line
367
367
self ._scrolling_index = self ._get_next_scrollable_text_index ()
@@ -376,7 +376,7 @@ def scroll_text(self, frame_delay=0.02):
376
376
return
377
377
if self ._text [self ._scrolling_index ] is not None :
378
378
self ._text [self ._scrolling_index ].x = self .graphics .display .width
379
- line_width = self ._text [self ._scrolling_index ].bounding_box [2 ]
379
+ line_width = self ._text [self ._scrolling_index ].bounding_box [2 ] * self . _text_scale [ self . _scrolling_index ]
380
380
for _ in range (self .graphics .display .width + line_width + 1 ):
381
381
self .scroll ()
382
382
sleep (frame_delay )
You can’t perform that action at this time.
0 commit comments