mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 07:19:37 +03:00
[project @ 2004-08-14 00:32:31 by rjw]
Changes for Tinct printing support svn path=/import/netsurf/; revision=1225
This commit is contained in:
parent
c1d774c65f
commit
98a6a5fa99
@ -203,6 +203,7 @@ int gif_initialise(struct gif_animation *gif) {
|
||||
header = (osspriteop_header*)((char*)gif->frame_image +
|
||||
gif->frame_image->first);
|
||||
header->size = sizeof(osspriteop_header);
|
||||
memset(header->name, 0x00, 12);
|
||||
strcpy(header->name, "gif");
|
||||
header->left_bit = 0;
|
||||
header->right_bit = 31;
|
||||
|
@ -129,6 +129,7 @@ bool nsjpeg_convert(struct content *c, int w, int h)
|
||||
/* sprite control block */
|
||||
sprite = (osspriteop_header *) (sprite_area + 1);
|
||||
sprite->size = area_size - 16;
|
||||
memset(sprite->name, 0x00, 12);
|
||||
strncpy(sprite->name, "jpeg", 12);
|
||||
sprite->width = width - 1;
|
||||
sprite->height = height - 1;
|
||||
|
@ -192,6 +192,7 @@ mng_bool nsmng_processheader(mng_handle mng, mng_uint32 width, mng_uint32 height
|
||||
*/
|
||||
sprite_header = (osspriteop_header *)(sprite_area + 1);
|
||||
sprite_header->size = sprite_size - sizeof(osspriteop_area);
|
||||
memset(sprite_header->name, 0x00, 12);
|
||||
strcpy(sprite_header->name, "mng");
|
||||
sprite_header->width = width - 1;
|
||||
sprite_header->height = height - 1;
|
||||
|
@ -134,6 +134,7 @@ void info_callback(png_structp png, png_infop info)
|
||||
*/
|
||||
sprite = (osspriteop_header *) (sprite_area + 1);
|
||||
sprite->size = sprite_size - sizeof(*sprite_area);
|
||||
memset(sprite->name, 0x00, 12);
|
||||
strcpy(sprite->name, "png");
|
||||
sprite->width = width - 1;
|
||||
sprite->height = height - 1;
|
||||
|
@ -3,6 +3,8 @@
|
||||
* Licensed under the GNU General Public License,
|
||||
* http://www.opensource.org/licenses/gpl-license
|
||||
* Copyright 2004 Richard Wilson <not_ginger_matt@hotmail.com>
|
||||
*
|
||||
* Complete details on using Tinct are available from http://www.tinct.net.
|
||||
*/
|
||||
|
||||
/** \file
|
||||
@ -13,27 +15,27 @@
|
||||
#define _NETSURF_RISCOS_TINCT_H_
|
||||
|
||||
/* Tinct_PlotAlpha plots the RGBA sprite pointed to by R2 at the OS screen location (R3,R4). Flags are
|
||||
supplied in R7 - see the Tinct documentation for further details.
|
||||
supplied in R7.
|
||||
*/
|
||||
#define Tinct_PlotAlpha 0x57240
|
||||
|
||||
/* Tinct_PlotScaledAlpha plots the RGBA sprite pointed to by R2 at the OS screen location (R3,R4)
|
||||
scaled to (R5,R6) OS units. Flags are supplied in R7 - see the Tinct documentation for further details.
|
||||
scaled to (R5,R6) OS units. Flags are supplied in R7.
|
||||
*/
|
||||
#define Tinct_PlotScaledAlpha 0x57241
|
||||
|
||||
/* Tinct_PlotAlpha plots the RGB0 sprite pointed to by R2 at the OS screen location (R3,R4). Flags are
|
||||
supplied in R7 - see the Tinct documentation for further details.
|
||||
supplied in R7.
|
||||
*/
|
||||
#define Tinct_Plot 0x57242
|
||||
|
||||
/* Tinct_PlotScaledAlpha plots the RGB0 sprite pointed to by R2 at the OS screen location (R3,R4)
|
||||
scaled to (R5,R6) OS units. Flags are supplied in R7 - see the Tinct documentation for further details.
|
||||
scaled to (R5,R6) OS units. Flags are supplied in R7.
|
||||
*/
|
||||
#define Tinct_PlotScaled 0x57243
|
||||
|
||||
/* Tinct_ConvertSprite creates a 32bpp sprite (pointer to memory supplied in R3) from a paletted sprite
|
||||
provided in R2 - see the Tinct documentation for further details.
|
||||
provided in R2.
|
||||
*/
|
||||
#define Tinct_ConvertSprite 0x57244
|
||||
|
||||
@ -50,5 +52,6 @@
|
||||
#define tinct_FILL_HORIZONTALLY 0x10
|
||||
#define tinct_FILL_VERTICALLY 0x20
|
||||
#define tinct_FORCE_PALETTE_READ 0x40
|
||||
#define tinct_USE_OS_SPRITE_OP 0x80
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user