diff options
Diffstat (limited to 'wasp/apps/clock.py')
| -rw-r--r-- | wasp/apps/clock.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wasp/apps/clock.py b/wasp/apps/clock.py index 2d5e30e..f0af15b 100644 --- a/wasp/apps/clock.py +++ b/wasp/apps/clock.py @@ -79,7 +79,7 @@ class ClockApp(): # Clear the display and draw that static parts of the watch face draw.fill() - draw.rleblit(digits.clock_colon, pos=(2*48, 80), fg=mid) + draw.blit(digits.clock_colon, 2*48, 80, fg=mid) # Redraw the status bar wasp.system.bar.draw() @@ -98,10 +98,10 @@ class ClockApp(): month = MONTH[month*3:(month+1)*3] # Draw the changeable parts of the watch face - draw.rleblit(DIGITS[now[4] % 10], pos=(4*48, 80), fg=hi) - draw.rleblit(DIGITS[now[4] // 10], pos=(3*48, 80), fg=lo) - draw.rleblit(DIGITS[now[3] % 10], pos=(1*48, 80), fg=hi) - draw.rleblit(DIGITS[now[3] // 10], pos=(0*48, 80), fg=lo) + draw.blit(DIGITS[now[4] % 10], 4*48, 80, fg=hi) + draw.blit(DIGITS[now[4] // 10], 3*48, 80, fg=lo) + draw.blit(DIGITS[now[3] % 10], 1*48, 80, fg=hi) + draw.blit(DIGITS[now[3] // 10], 0*48, 80, fg=lo) draw.set_color(hi) draw.string('{} {} {}'.format(now[2], month, now[0]), 0, 180, width=240) |
