forked from len0rd/rockbox
Grayscale library: LCD linearisation and gamma correction.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10402 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8cc73f152b
commit
628d20a610
11 changed files with 251 additions and 48 deletions
|
@ -474,7 +474,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
|||
/* initialize the grayscale buffer:
|
||||
* 8 bitplanes for 9 shades of gray.*/
|
||||
grayscales = gray_init(rb, gbuf, gbuf_size, false, LCD_WIDTH, LCD_HEIGHT/8,
|
||||
8, NULL) + 1;
|
||||
8, 0, NULL) + 1;
|
||||
if (grayscales != 9) {
|
||||
rb->snprintf(buff, sizeof(buff), "%d", grayscales);
|
||||
rb->lcd_puts(0, 1, buff);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue