summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2003-06-05 14:24:58 +0000
committerJames Bursa <james@netsurf-browser.org>2003-06-05 14:24:58 +0000
commitd378113f52d34627605a63fb1737c02397961047 (patch)
treea9db8ab605264a1d5ba5ce998e81ffcb6bf0af6c
parent7513ff06f2e7d948fc33360663e09037259c799a (diff)
downloadnetsurf-d378113f52d34627605a63fb1737c02397961047.tar.gz
netsurf-d378113f52d34627605a63fb1737c02397961047.tar.bz2
[project @ 2003-06-05 14:24:58 by bursa]
Fix black background problem. svn path=/import/netsurf/; revision=163
-rw-r--r--riscos/png.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/riscos/png.c b/riscos/png.c
index 842c18ff4..63e26c89e 100644
--- a/riscos/png.c
+++ b/riscos/png.c
@@ -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 |