mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-22 18:32:16 +03:00
[project @ 2003-06-05 14:24:58 by bursa]
Fix black background problem. svn path=/import/netsurf/; revision=163
This commit is contained in:
parent
7513ff06f2
commit
d378113f52
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* $Id: png.c,v 1.1 2003/05/10 11:15:49 bursa Exp $
|
||||
* $Id: png.c,v 1.2 2003/06/05 14:24:58 bursa Exp $
|
||||
*/
|
||||
|
||||
#include <assert.h>
|
||||
@ -29,9 +29,9 @@ void nspng_init(void)
|
||||
{
|
||||
/* generate colour lookup table for reducing to 8bpp */
|
||||
unsigned int red, green, blue;
|
||||
for (red = 0; red != 0xf; red++)
|
||||
for (green = 0; green != 0xf; green++)
|
||||
for (blue = 0; blue != 0xf; blue++)
|
||||
for (red = 0; red != 0x10; red++)
|
||||
for (green = 0; green != 0x10; green++)
|
||||
for (blue = 0; blue != 0x10; blue++)
|
||||
colour_table[red << 8 | green << 4 | blue] =
|
||||
colourtrans_return_colour_number_for_mode(
|
||||
blue << 28 | blue << 24 |
|
||||
|
Loading…
Reference in New Issue
Block a user