[project @ 2004-10-05 14:36:44 by jmb]
Lose RISC OS specific includes from GIF code. Fix jpegs for the gtk build. Allow use of gifs in gtk build. svn path=/import/netsurf/; revision=1303
This commit is contained in:
parent
60949d1aee
commit
93f8d3badc
|
@ -10,8 +10,6 @@
|
|||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include "oslib/osfile.h"
|
||||
#include "oslib/osspriteop.h"
|
||||
#include "netsurf/utils/config.h"
|
||||
#include "netsurf/content/content.h"
|
||||
#include "netsurf/desktop/browser.h"
|
||||
|
|
|
@ -13,9 +13,6 @@
|
|||
#include "gifread.h"
|
||||
#include "netsurf/image/bitmap.h"
|
||||
#include "netsurf/utils/log.h"
|
||||
#include "oslib/osspriteop.h"
|
||||
#include "oslib/osfile.h"
|
||||
|
||||
|
||||
/* READING GIF FILES
|
||||
=================
|
||||
|
@ -87,11 +84,11 @@ static int max_code, max_code_size;
|
|||
static int clear_code, end_code;
|
||||
static int curbit, lastbit, get_done, last_byte;
|
||||
static int return_clear;
|
||||
static int zero_data_block = FALSE;
|
||||
static bool zero_data_block = false;
|
||||
|
||||
/* Whether to clear the decoded image rather than plot
|
||||
*/
|
||||
static int clear_image = FALSE;
|
||||
static bool clear_image = false;
|
||||
|
||||
|
||||
/* Initialises any workspace held by the animation and attempts to decode
|
||||
|
@ -615,9 +612,9 @@ int gif_decode_frame(struct gif_animation *gif, unsigned int frame) {
|
|||
*/
|
||||
if (!clear_image) {
|
||||
if (gif->decoded_frame == gif->dirty_frame) {
|
||||
clear_image = TRUE;
|
||||
clear_image = true;
|
||||
if (frame != 0) gif_decode_frame(gif, gif->dirty_frame);
|
||||
clear_image = FALSE;
|
||||
clear_image = false;
|
||||
}
|
||||
gif->dirty_frame = -1;
|
||||
}
|
||||
|
|
|
@ -121,7 +121,7 @@ bool nsjpeg_convert(struct content *c, int w, int h)
|
|||
scanlines[0][i * 4 + 0] = r;
|
||||
scanlines[0][i * 4 + 1] = g;
|
||||
scanlines[0][i * 4 + 2] = b;
|
||||
/* scanlines[0][i * 4 + 3] = 0xff; */
|
||||
scanlines[0][i * 4 + 3] = 0xff;
|
||||
}
|
||||
#endif
|
||||
} while (cinfo.output_scanline != cinfo.output_height);
|
||||
|
|
|
@ -26,9 +26,7 @@
|
|||
#define WITH_JPEG
|
||||
#define WITH_MNG
|
||||
#define WITH_PNG
|
||||
#if defined(riscos) || defined(ncos) || defined(debug)
|
||||
#define WITH_GIF
|
||||
#endif
|
||||
#define WITH_GIF
|
||||
#if defined(riscos) || defined(ncos)
|
||||
#define WITH_DRAW
|
||||
#define WITH_SPRITE
|
||||
|
|
Loading…
Reference in New Issue