Skip to content

Commit

Permalink
Merge pull request #78 from ty-porter/dev
Browse files Browse the repository at this point in the history
Release v0.11.6
  • Loading branch information
ty-porter authored May 24, 2024
2 parents e304a09 + ab53fcf commit e0422bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions RGBMatrixEmulator/emulators/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ def SetPixel(self, x, y, r, g, b):
if self.display_adapter.pixel_out_of_bounds(x, y):
return

pixel = self.__pixels[int(y)][int(x)] = (r, g, b)
self.__pixels[int(y)][int(x)] = (r, g, b)

def SetImage(self, image, offset_x=0, offset_y=0, *other):
original = Image.fromarray(np.array(self.__pixels, dtype=np.uint8), "RGB")
original.paste(image, (offset_x, offset_y))
self.__pixels = np.asarray(original)
self.__pixels = np.copy(original)

# These are delegated to the display adapter to handle specific implementation.
def draw_to_screen(self):
Expand Down
2 changes: 1 addition & 1 deletion RGBMatrixEmulator/version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python

# package version
__version__ = '0.11.5'
__version__ = '0.11.6'
"""Installed version of RGBMatrixEmulator."""

0 comments on commit e0422bc

Please sign in to comment.