diff options
Diffstat (limited to 'engines/cine/gfx.h')
-rw-r--r-- | engines/cine/gfx.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/engines/cine/gfx.h b/engines/cine/gfx.h index 2b465b24a5..29b645ca75 100644 --- a/engines/cine/gfx.h +++ b/engines/cine/gfx.h @@ -25,7 +25,7 @@ #ifndef CINE_GFX_H_ #define CINE_GFX_H_ -void gfxDrawSprite(u8 *src4, u16 sw, u16 sh, u8 *dst4, s16 sx, s16 sy); +void gfxDrawSprite(uint8 *src4, uint16 sw, uint16 sh, uint8 *dst4, int16 sx, int16 sy); extern unsigned char *page0; extern unsigned char *page1; @@ -34,38 +34,38 @@ extern unsigned char *page3; void init_video(); -void convertGfx(u8 *source, u8 *dest, const u16 width, const u16 height); -void convertGfx2(u8 *source, u8 *dest, const u16 width, const u16 height); -void gfxCopyPage(u8 *source, u8 *dest); +void convertGfx(uint8 *source, uint8 *dest, const uint16 width, const uint16 height); +void convertGfx2(uint8 *source, uint8 *dest, const uint16 width, const uint16 height); +void gfxCopyPage(uint8 *source, uint8 *dest); -void transformPaletteRange(u8 startColor, u8 numColor, s8 r, s8 g, s8 b); +void transformPaletteRange(uint8 startColor, uint8 numColor, int8 r, int8 g, int8 b); void gfxFlipPage(void); -void gfxSpriteFunc1(u8 *ptr, u16 width, u16 height, u8 *page, s16 x, s16 y); -void gfxFillSprite(u8 *src4, u16 sw, u16 sh, u8 *dst4, s16 sx, s16 sy); +void gfxSpriteFunc1(uint8 *ptr, uint16 width, uint16 height, uint8 *page, int16 x, int16 y); +void gfxFillSprite(uint8 *src4, uint16 sw, uint16 sh, uint8 *dst4, int16 sx, int16 sy); -void gfxSpriteFunc2(u8 *spritePtr, s16 width, s16 height, u8 *maskPtr, - s16 maskWidth, s16 maskHeight, u8 *bufferPtr, s16 x, s16 y, u8 maskIdx); +void gfxSpriteFunc2(uint8 *spritePtr, int16 width, int16 height, uint8 *maskPtr, + int16 maskWidth, int16 maskHeight, uint8 *bufferPtr, int16 x, int16 y, uint8 maskIdx); -void gfxDrawLine(s16 x1, s16 y1, s16 x2, s16 y2, u8 color, u8 *page); -void gfxDrawPlainBox(s16 x1, s16 y1, s16 x2, s16 y2, u8 color); +void gfxDrawLine(int16 x1, int16 y1, int16 x2, int16 y2, uint8 color, uint8 *page); +void gfxDrawPlainBox(int16 x1, int16 y1, int16 x2, int16 y2, uint8 color); -void gfxResetPage(u8 *pagePtr); +void gfxResetPage(uint8 *pagePtr); -s16 gfxGetBit(s16 x, s16 y, u8 *ptr, s16 width); +int16 gfxGetBit(int16 x, int16 y, uint8 *ptr, int16 width); -extern u8 page1Raw[320 * 200]; -extern u8 page2Raw[320 * 200]; -extern u8 page3Raw[320 * 200]; +extern uint8 page1Raw[320 * 200]; +extern uint8 page2Raw[320 * 200]; +extern uint8 page3Raw[320 * 200]; -void gfxResetRawPage(u8 *pageRaw); -void gfxConvertSpriteToRaw(u8 *dest, u8 *source, u16 width, u16 height); -void gfxCopyRawPage(u8 *source, u8 * dest); -void gfxFlipRawPage(u8 *frontBuffer); -void drawSpriteRaw(u8 *spritePtr, u8 *maskPtr, s16 width, s16 height, - u8 *page, s16 x, s16 y); -void gfxDrawPlainBoxRaw(s16 x1, s16 y1, s16 x2, s16 y2, u8 color, u8 *page); -void drawSpriteRaw2(u8 *spritePtr, u8 transColor, s16 width, s16 height, - u8 *page, s16 x, s16 y); +void gfxResetRawPage(uint8 *pageRaw); +void gfxConvertSpriteToRaw(uint8 *dest, uint8 *source, uint16 width, uint16 height); +void gfxCopyRawPage(uint8 *source, uint8 * dest); +void gfxFlipRawPage(uint8 *frontBuffer); +void drawSpriteRaw(uint8 *spritePtr, uint8 *maskPtr, int16 width, int16 height, + uint8 *page, int16 x, int16 y); +void gfxDrawPlainBoxRaw(int16 x1, int16 y1, int16 x2, int16 y2, uint8 color, uint8 *page); +void drawSpriteRaw2(uint8 *spritePtr, uint8 transColor, int16 width, int16 height, + uint8 *page, int16 x, int16 y); #endif |