summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--riscos/gif.c12
-rw-r--r--riscos/png.c12
-rw-r--r--riscos/tinct.h18
3 files changed, 42 insertions, 0 deletions
diff --git a/riscos/gif.c b/riscos/gif.c
index b587c6665..29f1095a2 100644
--- a/riscos/gif.c
+++ b/riscos/gif.c
@@ -18,6 +18,7 @@
#include "netsurf/utils/config.h"
#include "netsurf/content/content.h"
#include "netsurf/riscos/gif.h"
+#include "netsurf/riscos/tinct.h"
#include "netsurf/utils/log.h"
#include "netsurf/utils/messages.h"
#include "netsurf/utils/utils.h"
@@ -137,6 +138,17 @@ void nsgif_redraw(struct content *c, long x, long y,
long clip_x0, long clip_y0, long clip_x1, long clip_y1,
float scale)
{
+ /* Tinct currently only handles 32bpp sprites that have an embedded alpha mask. Any
+ sprites not matching the required specifications are ignored. See the Tinct
+ documentation for further information.
+ */
+/* _swix(Tinct_PlotScaledAlpha, _IN(2) | _IN(3) | _IN(4) | _IN(5) | _IN(6) | _IN(7),
+ ((char *) c->data.gif.sprite_area + c->data.gif.sprite_area->first),
+ x, (int)(y - height),
+ width, height,
+ (options_filter_sprites?0:(1<<1)) | (options_dither_sprites?0:(1<<2)));
+*/
+
unsigned int size;
osspriteop_trans_tab *table;
os_factors factors;
diff --git a/riscos/png.c b/riscos/png.c
index 079c394e3..668c603a0 100644
--- a/riscos/png.c
+++ b/riscos/png.c
@@ -18,6 +18,7 @@
#include "netsurf/utils/config.h"
#include "netsurf/content/content.h"
#include "netsurf/riscos/png.h"
+#include "netsurf/riscos/tinct.h"
#include "netsurf/utils/log.h"
#include "netsurf/utils/messages.h"
#include "netsurf/utils/utils.h"
@@ -380,6 +381,17 @@ void nspng_redraw(struct content *c, long x, long y,
long clip_x0, long clip_y0, long clip_x1, long clip_y1,
float scale)
{
+
+ /* Tinct currently only handles 32bpp sprites that have an embedded alpha mask. Any
+ sprites not matching the required specifications are ignored. See the Tinct
+ documentation for further information.
+ */
+/* _swix(Tinct_PlotScaledAlpha, _IN(2) | _IN(3) | _IN(4) | _IN(5) | _IN(6) | _IN(7),
+ ((char *) c->data.png.sprite_area + c->data.png.sprite_area->first),
+ x, (int)(y - height),
+ width, height,
+ (options_filter_sprites?0:(1<<1)) | (options_dither_sprites?0:(1<<2)));
+*/
int size;
osspriteop_trans_tab *table;
os_factors factors;
diff --git a/riscos/tinct.h b/riscos/tinct.h
new file mode 100644
index 000000000..d1717bbbf
--- /dev/null
+++ b/riscos/tinct.h
@@ -0,0 +1,18 @@
+/*
+ * This file is part of NetSurf, http://netsurf.sourceforge.net/
+ * Licensed under the GNU General Public License,
+ * http://www.opensource.org/licenses/gpl-license
+ * Copyright 2004 Richard Wilson <not_ginger_matt@hotmail.com>
+ */
+
+/** \file
+ * Tinct SWI numbers
+ */
+
+#ifndef _NETSURF_RISCOS_TINCT_H_
+#define _NETSURF_RISCOS_TINCT_H_
+
+//#define Tinct_PlotAlpha 0x00000
+//#define Tinct_PlotScaledAlpha 0x00000
+
+#endif