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 e6fc39178a..d2e0fe3e50 100644 --- a/apps/plugins/lib/osd.c +++ b/apps/plugins/lib/osd.c | |||
@@ -115,6 +115,9 @@ static struct osd grey_osd; | |||
115 | #elif LCD_DEPTH == 24 | 115 | #elif LCD_DEPTH == 24 |
116 | # define _OSD_WIDTH2BYTES(w) ((w)*3) | 116 | # define _OSD_WIDTH2BYTES(w) ((w)*3) |
117 | # define _OSD_BYTES2WIDTH(b) ((b)/3) | 117 | # define _OSD_BYTES2WIDTH(b) ((b)/3) |
118 | #elif LCD_DEPTH == 32 | ||
119 | # define _OSD_WIDTH2BYTES(w) ((w)*4) | ||
120 | # define _OSD_BYTES2WIDTH(b) ((b)/4) | ||
118 | #else /* other LCD depth */ | 121 | #else /* other LCD depth */ |
119 | # error Unknown LCD depth; please define macros | 122 | # error Unknown LCD depth; please define macros |
120 | #endif /* LCD_DEPTH */ | 123 | #endif /* LCD_DEPTH */ |