mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Greyscale library: Always use reconstructing inversion, because it's legal to use unbuffered drawing functions in buffered mode, meaning that the chunky buffer might not be in sync with what's displayed. Mpegplayer does this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16975 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
36f8fba209
commit
8f560bc2b5
1 changed files with 23 additions and 31 deletions
|
@ -253,13 +253,6 @@ static void invert_gvalues(void)
|
|||
unsigned x = 0;
|
||||
unsigned last_x;
|
||||
|
||||
if (_grey_info.flags & GREY_BUFFERED)
|
||||
{
|
||||
fill_gvalues();
|
||||
grey_update();
|
||||
}
|
||||
else /* Unbuffered - need crude reconstruction */
|
||||
{
|
||||
/* Step 1: Calculate a transposed table for undoing the old mapping */
|
||||
for (i = 0; i < 256; i++)
|
||||
{
|
||||
|
@ -287,7 +280,6 @@ static void invert_gvalues(void)
|
|||
do
|
||||
*val = _grey_info.gvalue[rev_tab[*val]];
|
||||
while (++val < end);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue