Skip to content

Commit

Permalink
Merge bee0475 into ed4fccb
Browse files Browse the repository at this point in the history
  • Loading branch information
rm-hull committed Nov 22, 2017
2 parents ed4fccb + bee0475 commit 689d25d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions luma/emulator/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
import string
import curses
import collections
try:
from StringIO import StringIO
except ImportError: # pragma: no cover
from io import StringIO

from io import StringIO
from PIL import Image, ImageFont, ImageDraw

from luma.core.device import device
Expand Down Expand Up @@ -180,7 +176,7 @@ class pygame(emulator):
def __init__(self, width=128, height=64, rotate=0, mode="RGB", transform="scale2x",
scale=2, frame_rate=60, **kwargs):
super(pygame, self).__init__(width, height, rotate, mode, transform, scale)
self._pygame.init()
self._pygame.display.init()
self._pygame.font.init()
self._pygame.display.set_caption("Luma.core Display Emulator")
self._clock = self._pygame.time.Clock()
Expand Down

0 comments on commit 689d25d

Please sign in to comment.