From fbb6a2ff6d751adaaef73a86a98700f91571d0a1 Mon Sep 17 00:00:00 2001 From: Marcin Bukat Date: Fri, 2 Mar 2018 21:53:55 +0100 Subject: Agptek Rocker: Build plugins Patch provided by Aapo Tahkola. Change-Id: I37a42a950d78d6b8aa3927ec7aeb30030f7be7a5 --- apps/plugins/lib/osd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/plugins/lib/osd.c') diff --git a/apps/plugins/lib/osd.c b/apps/plugins/lib/osd.c index e6fc39178a..d2e0fe3e50 100644 --- a/apps/plugins/lib/osd.c +++ b/apps/plugins/lib/osd.c @@ -115,6 +115,9 @@ static struct osd grey_osd; #elif LCD_DEPTH == 24 # define _OSD_WIDTH2BYTES(w) ((w)*3) # define _OSD_BYTES2WIDTH(b) ((b)/3) +#elif LCD_DEPTH == 32 +# define _OSD_WIDTH2BYTES(w) ((w)*4) +# define _OSD_BYTES2WIDTH(b) ((b)/4) #else /* other LCD depth */ # error Unknown LCD depth; please define macros #endif /* LCD_DEPTH */ -- cgit v1.2.3