[project @ 2004-03-09 12:57:20 by rjw]

svn path=/import/netsurf/; revision=594
This commit is contained in:
Richard Wilson 2004-03-09 12:58:57 +00:00
parent 25a98ce2c0
commit b7d5355f6f
3 changed files with 42 additions and 0 deletions

View File

@ -18,6 +18,7 @@
#include "netsurf/utils/config.h" #include "netsurf/utils/config.h"
#include "netsurf/content/content.h" #include "netsurf/content/content.h"
#include "netsurf/riscos/gif.h" #include "netsurf/riscos/gif.h"
#include "netsurf/riscos/tinct.h"
#include "netsurf/utils/log.h" #include "netsurf/utils/log.h"
#include "netsurf/utils/messages.h" #include "netsurf/utils/messages.h"
#include "netsurf/utils/utils.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, long clip_x0, long clip_y0, long clip_x1, long clip_y1,
float scale) 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; unsigned int size;
osspriteop_trans_tab *table; osspriteop_trans_tab *table;
os_factors factors; os_factors factors;

View File

@ -18,6 +18,7 @@
#include "netsurf/utils/config.h" #include "netsurf/utils/config.h"
#include "netsurf/content/content.h" #include "netsurf/content/content.h"
#include "netsurf/riscos/png.h" #include "netsurf/riscos/png.h"
#include "netsurf/riscos/tinct.h"
#include "netsurf/utils/log.h" #include "netsurf/utils/log.h"
#include "netsurf/utils/messages.h" #include "netsurf/utils/messages.h"
#include "netsurf/utils/utils.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, long clip_x0, long clip_y0, long clip_x1, long clip_y1,
float scale) 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; int size;
osspriteop_trans_tab *table; osspriteop_trans_tab *table;
os_factors factors; os_factors factors;

18
riscos/tinct.h Normal file
View File

@ -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