Skip to content

Commit 8b1f310

Browse files
committed
merging main into pr branch
1 parent 735f2e1 commit 8b1f310

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

adafruit_pyoa.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -406,17 +406,17 @@ def set_background(self, filename, *, with_fade=True):
406406
with open(
407407
self._gamedirectory + "/" + filename, "rb"
408408
) as self._background_file:
409-
# TODO: Once CP6 is no longer supported, pass the combined filename into OnDiskBitmap
410-
background = displayio.OnDiskBitmap(self._background_file)
411-
self._background_sprite = displayio.TileGrid(
412-
background,
413-
pixel_shader=getattr(
414-
background, "pixel_shader", displayio.ColorConverter()
415-
),
416-
# TODO: Once CP6 is no longer supported, replace the above line with below
417-
# pixel_shader=background.pixel_shader,
418-
)
419-
self._background_group.append(self._background_sprite)
409+
# TODO: Once CP6 is no longer supported, pass combined filename into OnDiskBitmap
410+
background = displayio.OnDiskBitmap(self._background_file)
411+
self._background_sprite = displayio.TileGrid(
412+
background,
413+
pixel_shader=getattr(
414+
background, "pixel_shader", displayio.ColorConverter()
415+
),
416+
# TODO: Once CP6 is no longer supported, replace the above line with below
417+
# pixel_shader=background.pixel_shader,
418+
)
419+
self._background_group.append(self._background_sprite)
420420
if with_fade:
421421
self._display.refresh(target_frames_per_second=60)
422422
self.backlight_fade(1.0)

0 commit comments

Comments
 (0)