forked from len0rd/rockbox
Greyscale library: * Defer application of lcd linearisation + gamma in buffered mode to the actual update. This simplifies the update function (grey_update() and grey_update_rect() now are just calls to grey_ub_gray_bitmap_part()), and makes DRMODE_COMPLEMENT work properly. * Make the simulator version work and behave more similar to the target version.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16080 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
071c2ac339
commit
fa7eb56c84
5 changed files with 95 additions and 206 deletions
|
@ -155,14 +155,10 @@ struct _grey_info
|
|||
#endif
|
||||
unsigned long flags; /* various flags, see #defines */
|
||||
struct plugin_api *rb; /* plugin API pointer */
|
||||
#ifndef SIMULATOR
|
||||
unsigned char *values; /* start of greyscale pixel values */
|
||||
unsigned char *phases; /* start of greyscale pixel phases */
|
||||
#endif
|
||||
unsigned char *buffer; /* start of chunky pixel buffer (for buffered mode) */
|
||||
unsigned char gvalue[256]; /* calculated brightness -> greyvalue table */
|
||||
int fg_val; /* current foreground value */
|
||||
int bg_val; /* current background value */
|
||||
int fg_brightness; /* current foreground brightness */
|
||||
int bg_brightness; /* current background brightness */
|
||||
int drawmode; /* current draw mode */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue