A ver si podeis volver a ayudarme. Cuando voy a compilar ya con wiz_lib me da un error bastante raro y sin sentido (Al final seguro que es una estupidez pero llevo atascado un par de horas con esto).
Aqui teneis el código:
Código:
#include "wiz_lib.h"
#define FB0_0 (0x2A00000)
#define FB0_1 (0x2A00000+320*240*2)
#define FB1_0 (0x2A00000+320*240*4)
#define FB1_1 (0x2A00000+320*240*6)
#define FBX_L (320*240*2)
unsigned char *uppermem;
/* register access */
static unsigned long wiz_dev[3];
static volatile unsigned int *memregs32;
static volatile unsigned short *memregs16;
static volatile unsigned char *memregs8;
static unsigned int bkregs32[15]; /* backing up values */
/* library variables */
static int layer_width[2];
unsigned char *fb0_8bit, *fb1_8bit; /* current buffers (8 bit) */
unsigned short *fb0_16bit, *fb1_16bit; /* current buffers (16 bit) */
static unsigned short *fb0_0, *fb0_1; /* layer 0, buffer 0 : layer 0, buffer 1 (RGB) */
static unsigned short *fb1_0, *fb1_1; /* layer 1, buffer 0 : layer 1, buffer 1 (RGB) */
int wiz_sound_rate=22050;
int wiz_sound_stereo=0;
int wiz_clock=533;
int rotate_controls=0;
int wiz_ram_tweaks=0;
int wiz_rotated_video=0;
static void lc_setfb(int layer, unsigned short *set_to);
static void lc_flipfb(int layer,int single);
static void lc_setlayer(int layer, bool onoff, bool alpha, bool invert, bool trans, unsigned int mode);
static void lc_layerpos(int layer, int x1, int y1, int x2, int y2);
/*
static void lc_setalpha(int layer, int value);
static void lc_settranscol(int layer, unsigned int colour);
static void lc_setinvcol(int layer, unsigned int colour);
*/
static void lc_dirtymlc(void);
static void lc_dirtylayer(int layer);
static void lc_screensize(int w, int h);
static void lc_setbgcol(unsigned int colour);
static void lc_setstride(int layer, int hs, int vs);
Y me da este error en la linea 34 (La de estatic void lc_setlayer(int layer, bool onoff, bool alpha, bool invert, bool trans, unsigned int mode) :
Código:
wiz_lib.cpp|34|error: syntax error before 'bool'|
Me dan muchos mas errores pero creo que son a raiz de este.
Marcadores