mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-03 15:21:40 +00:00
Changed from char to int8 in a number of places. This makes not assume the typ of char regardless of any compiler flags. Now looks very nice on the Symbian platfor.
svn-id: r18435
This commit is contained in:
parent
8fbbd28f79
commit
9fc959e63d
12
gob/draw.cpp
12
gob/draw.cpp
@ -60,9 +60,9 @@ int16 draw_invalidatedLefts[30];
|
|||||||
int16 draw_invalidatedRights[30];
|
int16 draw_invalidatedRights[30];
|
||||||
int16 draw_invalidatedBottoms[30];
|
int16 draw_invalidatedBottoms[30];
|
||||||
|
|
||||||
char draw_noInvalidated = 0;
|
int8 draw_noInvalidated = 0;
|
||||||
char draw_applyPal = 0;
|
int8 draw_applyPal = 0;
|
||||||
char draw_paletteCleared = 0;
|
int8 draw_paletteCleared = 0;
|
||||||
|
|
||||||
SurfaceDesc *draw_backSurface = 0;
|
SurfaceDesc *draw_backSurface = 0;
|
||||||
SurfaceDesc *draw_frontSurface = 0;
|
SurfaceDesc *draw_frontSurface = 0;
|
||||||
@ -85,9 +85,9 @@ int16 draw_transparentCursor = 0;
|
|||||||
SurfaceDesc *draw_cursorSprites = 0;
|
SurfaceDesc *draw_cursorSprites = 0;
|
||||||
SurfaceDesc *draw_cursorBack = 0;
|
SurfaceDesc *draw_cursorBack = 0;
|
||||||
int16 draw_cursorAnim = 0;
|
int16 draw_cursorAnim = 0;
|
||||||
char draw_cursorAnimLow[40];
|
int8 draw_cursorAnimLow[40];
|
||||||
char draw_cursorAnimHigh[40];
|
int8 draw_cursorAnimHigh[40];
|
||||||
char draw_cursorAnimDelays[40];
|
int8 draw_cursorAnimDelays[40];
|
||||||
static uint32 draw_cursorTimeKey = 0;
|
static uint32 draw_cursorTimeKey = 0;
|
||||||
|
|
||||||
int16 draw_palLoadData1[] = { 0, 17, 34, 51 };
|
int16 draw_palLoadData1[] = { 0, 17, 34, 51 };
|
||||||
|
22
gob/draw.h
22
gob/draw.h
@ -32,10 +32,10 @@ namespace Gob {
|
|||||||
#define RENDERFLAG_USEDELTAS 0x10
|
#define RENDERFLAG_USEDELTAS 0x10
|
||||||
|
|
||||||
typedef struct Draw_FontToSprite {
|
typedef struct Draw_FontToSprite {
|
||||||
char sprite;
|
int8 sprite;
|
||||||
char base;
|
int8 base;
|
||||||
char width;
|
int8 width;
|
||||||
char height;
|
int8 height;
|
||||||
} Draw_FontToSprite;
|
} Draw_FontToSprite;
|
||||||
|
|
||||||
extern int16 draw_fontIndex;
|
extern int16 draw_fontIndex;
|
||||||
@ -65,9 +65,9 @@ extern int16 draw_invalidatedLefts[30];
|
|||||||
extern int16 draw_invalidatedRights[30];
|
extern int16 draw_invalidatedRights[30];
|
||||||
extern int16 draw_invalidatedBottoms[30];
|
extern int16 draw_invalidatedBottoms[30];
|
||||||
|
|
||||||
extern char draw_noInvalidated;
|
extern int8 draw_noInvalidated;
|
||||||
extern char draw_doFullFlip;
|
extern int8 draw_doFullFlip;
|
||||||
extern char draw_paletteCleared;
|
extern int8 draw_paletteCleared;
|
||||||
|
|
||||||
extern int16 draw_cursorIndex;
|
extern int16 draw_cursorIndex;
|
||||||
extern int16 draw_transparentCursor;
|
extern int16 draw_transparentCursor;
|
||||||
@ -91,10 +91,10 @@ extern int16 draw_cursorYDeltaVar;
|
|||||||
extern SurfaceDesc *draw_cursorSprites;
|
extern SurfaceDesc *draw_cursorSprites;
|
||||||
extern SurfaceDesc *draw_cursorBack;
|
extern SurfaceDesc *draw_cursorBack;
|
||||||
extern int16 draw_cursorAnim;
|
extern int16 draw_cursorAnim;
|
||||||
extern char draw_cursorAnimLow[40];
|
extern int8 draw_cursorAnimLow[40];
|
||||||
extern char draw_cursorAnimHigh[40];
|
extern int8 draw_cursorAnimHigh[40];
|
||||||
extern char draw_cursorAnimDelays[40];
|
extern int8 draw_cursorAnimDelays[40];
|
||||||
extern char draw_applyPal;
|
extern int8 draw_applyPal;
|
||||||
|
|
||||||
void draw_invalidateRect(int16 left, int16 top, int16 right, int16 bottom);
|
void draw_invalidateRect(int16 left, int16 top, int16 right, int16 bottom);
|
||||||
void draw_blitInvalidated(void);
|
void draw_blitInvalidated(void);
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
namespace Gob {
|
namespace Gob {
|
||||||
|
|
||||||
char map_passMap[28][26]; // [y][x]
|
int8 map_passMap[28][26]; // [y][x]
|
||||||
int16 map_itemsMap[28][26]; // [y][x]
|
int16 map_itemsMap[28][26]; // [y][x]
|
||||||
|
|
||||||
Map_Point map_wayPoints[40];
|
Map_Point map_wayPoints[40];
|
||||||
@ -44,7 +44,7 @@ int16 map_destX;
|
|||||||
int16 map_destY;
|
int16 map_destY;
|
||||||
|
|
||||||
Map_ItemPos map_itemPoses[40];
|
Map_ItemPos map_itemPoses[40];
|
||||||
char map_loadFromAvo;
|
int8 map_loadFromAvo;
|
||||||
char map_sourceFile[15];
|
char map_sourceFile[15];
|
||||||
static char *map_avoDataPtr;
|
static char *map_avoDataPtr;
|
||||||
|
|
||||||
|
12
gob/map.h
12
gob/map.h
@ -33,13 +33,13 @@ typedef struct Map_Point {
|
|||||||
|
|
||||||
#define szMap_ItemPos 3
|
#define szMap_ItemPos 3
|
||||||
typedef struct Map_ItemPos {
|
typedef struct Map_ItemPos {
|
||||||
char x;
|
int8 x;
|
||||||
char y;
|
int8 y;
|
||||||
char orient; // ??
|
int8 orient; // ??
|
||||||
} GCC_PACK Map_ItemPos;
|
} GCC_PACK Map_ItemPos;
|
||||||
#pragma END_PACK_STRUCTS
|
#pragma END_PACK_STRUCTS
|
||||||
|
|
||||||
extern char map_passMap[28][26]; // [y][x]
|
extern int8 map_passMap[28][26]; // [y][x]
|
||||||
extern int16 map_itemsMap[28][26]; // [y][x]
|
extern int16 map_itemsMap[28][26]; // [y][x]
|
||||||
extern Map_Point map_wayPoints[40];
|
extern Map_Point map_wayPoints[40];
|
||||||
extern int16 map_nearestWayPoint;
|
extern int16 map_nearestWayPoint;
|
||||||
@ -49,7 +49,7 @@ extern int16 map_curGoblinX;
|
|||||||
extern int16 map_curGoblinY;
|
extern int16 map_curGoblinY;
|
||||||
extern int16 map_destX;
|
extern int16 map_destX;
|
||||||
extern int16 map_destY;
|
extern int16 map_destY;
|
||||||
extern char map_loadFromAvo;
|
extern int8 map_loadFromAvo;
|
||||||
|
|
||||||
extern Map_ItemPos map_itemPoses[40];
|
extern Map_ItemPos map_itemPoses[40];
|
||||||
extern char map_sourceFile[15];
|
extern char map_sourceFile[15];
|
||||||
@ -64,7 +64,7 @@ int16 map_checkLongPath(int16 x0, int16 y0, int16 x1, int16 y1, int16 i0, int16
|
|||||||
int16 map_optimizePoints(int16 xPos, int16 yPos);
|
int16 map_optimizePoints(int16 xPos, int16 yPos);
|
||||||
void map_loadItemToObject(void);
|
void map_loadItemToObject(void);
|
||||||
void map_loadMapObjects(char *avjFile);
|
void map_loadMapObjects(char *avjFile);
|
||||||
void map_loadDataFromAvo(char *dest, int16 size);
|
void map_loadDataFromAvo(int8 *dest, int16 size);
|
||||||
void map_loadMapsInitGobs(void);
|
void map_loadMapsInitGobs(void);
|
||||||
|
|
||||||
} // End of namespace Gob
|
} // End of namespace Gob
|
||||||
|
28
gob/mult.h
28
gob/mult.h
@ -28,19 +28,19 @@ namespace Gob {
|
|||||||
|
|
||||||
#pragma START_PACK_STRUCTS
|
#pragma START_PACK_STRUCTS
|
||||||
typedef struct Mult_AnimData {
|
typedef struct Mult_AnimData {
|
||||||
char animation;
|
int8 animation;
|
||||||
char layer;
|
int8 layer;
|
||||||
char frame;
|
int8 frame;
|
||||||
char animType;
|
int8 animType;
|
||||||
char order;
|
int8 order;
|
||||||
char isPaused;
|
int8 isPaused;
|
||||||
char isStatic;
|
int8 isStatic;
|
||||||
char maxTick;
|
int8 maxTick;
|
||||||
char unknown;
|
int8 unknown;
|
||||||
char newLayer;
|
int8 newLayer;
|
||||||
char newAnimation;
|
int8 newAnimation;
|
||||||
byte intersected;
|
byte intersected;
|
||||||
char newCycle;
|
int8 newCycle;
|
||||||
} GCC_PACK Mult_AnimData;
|
} GCC_PACK Mult_AnimData;
|
||||||
|
|
||||||
typedef struct Mult_Object {
|
typedef struct Mult_Object {
|
||||||
@ -82,14 +82,14 @@ typedef struct Mult_PalKey {
|
|||||||
int16 rates[4];
|
int16 rates[4];
|
||||||
int16 unknown0;
|
int16 unknown0;
|
||||||
int16 unknown1;
|
int16 unknown1;
|
||||||
char subst[16][4];
|
int8 subst[16][4];
|
||||||
} GCC_PACK Mult_PalKey;
|
} GCC_PACK Mult_PalKey;
|
||||||
|
|
||||||
typedef struct Mult_PalFadeKey {
|
typedef struct Mult_PalFadeKey {
|
||||||
int16 frame;
|
int16 frame;
|
||||||
int16 fade;
|
int16 fade;
|
||||||
int16 palIndex;
|
int16 palIndex;
|
||||||
char flag;
|
int8 flag;
|
||||||
} GCC_PACK Mult_PalFadeKey;
|
} GCC_PACK Mult_PalFadeKey;
|
||||||
|
|
||||||
typedef struct Mult_SndKey {
|
typedef struct Mult_SndKey {
|
||||||
|
@ -114,7 +114,7 @@ int16 scen_loadStatic(char search) {
|
|||||||
|
|
||||||
ptr->layers = (Scen_StaticLayer **)malloc(sizeof(Scen_StaticLayer *) * ptr->layersCount);
|
ptr->layers = (Scen_StaticLayer **)malloc(sizeof(Scen_StaticLayer *) * ptr->layersCount);
|
||||||
ptr->pieces = (Scen_PieceDesc **)malloc(sizeof(Scen_PieceDesc *) * picsCount);
|
ptr->pieces = (Scen_PieceDesc **)malloc(sizeof(Scen_PieceDesc *) * picsCount);
|
||||||
ptr->piecesFromExt = (char *)malloc(picsCount);
|
ptr->piecesFromExt = (int8 *)malloc(picsCount);
|
||||||
|
|
||||||
for (i = 0; i < ptr->layersCount; i++) {
|
for (i = 0; i < ptr->layersCount; i++) {
|
||||||
offset = (int16)READ_LE_UINT16(&((int16 *)dataPtr)[i]);
|
offset = (int16)READ_LE_UINT16(&((int16 *)dataPtr)[i]);
|
||||||
@ -434,7 +434,7 @@ int16 scen_loadAnim(char search) {
|
|||||||
ptr->pieces =
|
ptr->pieces =
|
||||||
(Scen_PieceDesc **) malloc(sizeof(Scen_PieceDesc *) *
|
(Scen_PieceDesc **) malloc(sizeof(Scen_PieceDesc *) *
|
||||||
picsCount);
|
picsCount);
|
||||||
ptr->piecesFromExt = (char *) malloc(picsCount);
|
ptr->piecesFromExt = (int8 *) malloc(picsCount);
|
||||||
|
|
||||||
for (i = 0; i < ptr->layersCount; i++) {
|
for (i = 0; i < ptr->layersCount; i++) {
|
||||||
offset = (int16)READ_LE_UINT16(&((int16 *)dataPtr)[i]);
|
offset = (int16)READ_LE_UINT16(&((int16 *)dataPtr)[i]);
|
||||||
|
@ -33,12 +33,12 @@ typedef struct Scen_PieceDesc {
|
|||||||
} GCC_PACK Scen_PieceDesc;
|
} GCC_PACK Scen_PieceDesc;
|
||||||
|
|
||||||
typedef struct Scen_StaticPlane {
|
typedef struct Scen_StaticPlane {
|
||||||
char pictIndex;
|
int8 pictIndex;
|
||||||
char pieceIndex;
|
int8 pieceIndex;
|
||||||
char drawOrder;
|
int8 drawOrder;
|
||||||
int16 destX;
|
int16 destX;
|
||||||
int16 destY;
|
int16 destY;
|
||||||
char transp;
|
int8 transp;
|
||||||
} GCC_PACK Scen_StaticPlane;
|
} GCC_PACK Scen_StaticPlane;
|
||||||
|
|
||||||
typedef struct Scen_StaticLayer {
|
typedef struct Scen_StaticLayer {
|
||||||
@ -52,9 +52,9 @@ typedef struct Scen_StaticLayer {
|
|||||||
typedef struct Scen_AnimFramePiece {
|
typedef struct Scen_AnimFramePiece {
|
||||||
byte pictIndex;
|
byte pictIndex;
|
||||||
byte pieceIndex;
|
byte pieceIndex;
|
||||||
char destX;
|
int8 destX;
|
||||||
char destY;
|
int8 destY;
|
||||||
char notFinal;
|
int8 notFinal;
|
||||||
} GCC_PACK Scen_AnimFramePiece;
|
} GCC_PACK Scen_AnimFramePiece;
|
||||||
|
|
||||||
typedef struct Scen_AnimLayer {
|
typedef struct Scen_AnimLayer {
|
||||||
@ -63,7 +63,7 @@ typedef struct Scen_AnimLayer {
|
|||||||
int16 posY;
|
int16 posY;
|
||||||
int16 animDeltaX;
|
int16 animDeltaX;
|
||||||
int16 animDeltaY;
|
int16 animDeltaY;
|
||||||
char transp;
|
int8 transp;
|
||||||
int16 framesCount;
|
int16 framesCount;
|
||||||
Scen_AnimFramePiece frames[1];
|
Scen_AnimFramePiece frames[1];
|
||||||
} GCC_PACK Scen_AnimLayer;
|
} GCC_PACK Scen_AnimLayer;
|
||||||
@ -73,7 +73,7 @@ typedef struct Scen_Static {
|
|||||||
int16 layersCount;
|
int16 layersCount;
|
||||||
Scen_StaticLayer **layers;
|
Scen_StaticLayer **layers;
|
||||||
Scen_PieceDesc **pieces;
|
Scen_PieceDesc **pieces;
|
||||||
char *piecesFromExt;
|
int8 *piecesFromExt;
|
||||||
char *dataPtr;
|
char *dataPtr;
|
||||||
} Scen_Static;
|
} Scen_Static;
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ struct Scen_Animation {
|
|||||||
int16 layersCount;
|
int16 layersCount;
|
||||||
Scen_AnimLayer **layers;
|
Scen_AnimLayer **layers;
|
||||||
Scen_PieceDesc **pieces;
|
Scen_PieceDesc **pieces;
|
||||||
char *piecesFromExt;
|
int8 *piecesFromExt;
|
||||||
char *dataPtr;
|
char *dataPtr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ int32 vid_getRectSize(int16 width, int16 height, int16 flag, int16 mode) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SurfaceDesc *vid_initSurfDesc(int16 vidMode, int16 width, int16 height, int16 flags) {
|
SurfaceDesc *vid_initSurfDesc(int16 vidMode, int16 width, int16 height, int16 flags) {
|
||||||
char flagsAnd2;
|
int8 flagsAnd2;
|
||||||
byte *vidMem;
|
byte *vidMem;
|
||||||
int32 sprSize;
|
int32 sprSize;
|
||||||
int16 someFlags = 1;
|
int16 someFlags = 1;
|
||||||
|
16
gob/video.h
16
gob/video.h
@ -39,8 +39,8 @@ namespace Gob {
|
|||||||
typedef struct SurfaceDesc_t {
|
typedef struct SurfaceDesc_t {
|
||||||
int16 width;
|
int16 width;
|
||||||
int16 height;
|
int16 height;
|
||||||
char reserved1;
|
int8 reserved1;
|
||||||
char flag;
|
int8 flag;
|
||||||
int16 vidMode;
|
int16 vidMode;
|
||||||
byte *vidPtr;
|
byte *vidPtr;
|
||||||
int16 reserved2;
|
int16 reserved2;
|
||||||
@ -48,12 +48,12 @@ typedef struct SurfaceDesc_t {
|
|||||||
|
|
||||||
typedef struct FontDesc_t {
|
typedef struct FontDesc_t {
|
||||||
char *dataPtr;
|
char *dataPtr;
|
||||||
char itemWidth;
|
int8 itemWidth;
|
||||||
char itemHeight;
|
int8 itemHeight;
|
||||||
char startItem;
|
int8 startItem;
|
||||||
char endItem;
|
int8 endItem;
|
||||||
char itemSize;
|
int8 itemSize;
|
||||||
char bitWidth;
|
int8 bitWidth;
|
||||||
void *extraData;
|
void *extraData;
|
||||||
} FontDesc;
|
} FontDesc;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user