diff options
Diffstat (limited to 'apps/plugins/lib/osd.c')
| -rw-r--r-- | apps/plugins/lib/osd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugins/lib/osd.c b/apps/plugins/lib/osd.c index e6fc391..d2e0fe3 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 */ |