diff --git a/.github/workflows/integration_delivery.yml b/.github/workflows/integration_delivery.yml index 7690771..f9be45f 100644 --- a/.github/workflows/integration_delivery.yml +++ b/.github/workflows/integration_delivery.yml @@ -205,7 +205,7 @@ jobs: path: artifacts - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: files: artifacts/* tag_name: v${{ needs.build.outputs.version }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 5837b74..50ecb4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## Version 0.7.2 + +- fix: revert numpy data structure storing display data to uint16 as 2 bytes are + used per pixel + ## Version 0.7.1 - fix: don't interact with window system when running headless for tests diff --git a/headless_kivy_pi/display.py b/headless_kivy_pi/display.py index cc6cd24..42d0802 100644 --- a/headless_kivy_pi/display.py +++ b/headless_kivy_pi/display.py @@ -1,4 +1,5 @@ """Implement `transfer_to_display` function.""" + from __future__ import annotations from typing import TYPE_CHECKING @@ -24,7 +25,7 @@ def transfer_to_display( logger.debug(f'Rendering frame with hash "{data_hash}"') # Flip the image vertically - data = data.reshape(rectangle[2], rectangle[3], -1)[::-1, :, :3].astype(np.uint8) + data = data.reshape(rectangle[2], rectangle[3], -1)[::-1, :, :3].astype(np.uint16) color = ( ((data[:, :, 0] & 0xF8) << 8) diff --git a/pyproject.toml b/pyproject.toml index 7a32cbf..3e7267e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "headless-kivy-pi" -version = "0.7.1" +version = "0.7.2" description = "Headless renderer for Kivy framework on Raspberry Pi" authors = ["Sassan Haradji "] license = "Apache-2.0"