From e3b0a20c445ec4a3c4868ceee4f273eef887e01e Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Wed, 11 Nov 2015 23:02:55 +0000 Subject: [PATCH] lcd4linux: fix endian issues with GLCD2USB plugin Patch submitted by Vladimir Ermakov. Signed-off-by: Vladimir Ermakov Signed-off-by: Jonathan McCrohan --- utils/lcd4linux/Makefile | 2 +- .../patches/173-glcd2usb-bigendian-fix.patch | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 utils/lcd4linux/patches/173-glcd2usb-bigendian-fix.patch diff --git a/utils/lcd4linux/Makefile b/utils/lcd4linux/Makefile index 626795bf8b..cbb8c91351 100644 --- a/utils/lcd4linux/Makefile +++ b/utils/lcd4linux/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=lcd4linux PKG_REV:=1203 PKG_VERSION:=r$(PKG_REV) -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=https://ssl.bulix.org/svn/lcd4linux/trunk/ diff --git a/utils/lcd4linux/patches/173-glcd2usb-bigendian-fix.patch b/utils/lcd4linux/patches/173-glcd2usb-bigendian-fix.patch new file mode 100644 index 0000000000..97e03c7486 --- /dev/null +++ b/utils/lcd4linux/patches/173-glcd2usb-bigendian-fix.patch @@ -0,0 +1,20 @@ +--- a/drv_GLCD2USB.c ++++ b/drv_GLCD2USB.c +@@ -48,6 +48,7 @@ + #include + #include + #include ++#include + + #include "debug.h" + #include "cfg.h" +@@ -487,6 +488,9 @@ static int drv_GLCD2USB_start(const char + return -1; + } + ++ buffer.display_info.width = le16toh(buffer.display_info.width); ++ buffer.display_info.height = le16toh(buffer.display_info.height); ++ + info("%s: display name = %s", Name, buffer.display_info.name); + info("%s: display resolution = %d * %d", Name, buffer.display_info.width, buffer.display_info.height); + info("%s: display flags: %x", Name, buffer.display_info.flags); -- 2.30.2