diff options
author | Fabio Battaglia | 2009-06-03 14:03:05 +0000 |
---|---|---|
committer | Fabio Battaglia | 2009-06-03 14:03:05 +0000 |
commit | dcbc6e7e695dcf35a36fc436c9318fd2648b1099 (patch) | |
tree | 212e5cad99d58b7f3b400c80c20c50fe531469ea /engines/tinsel/palette.h | |
parent | cb0aed33037a67c3570059df98ec7bbd167d1703 (diff) | |
download | scummvm-rg350-dcbc6e7e695dcf35a36fc436c9318fd2648b1099.tar.gz scummvm-rg350-dcbc6e7e695dcf35a36fc436c9318fd2648b1099.tar.bz2 scummvm-rg350-dcbc6e7e695dcf35a36fc436c9318fd2648b1099.zip |
tinsel: removed some warnings related to psx code and cleanup of psx palette remapper function
svn-id: r41138
Diffstat (limited to 'engines/tinsel/palette.h')
-rw-r--r-- | engines/tinsel/palette.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/tinsel/palette.h b/engines/tinsel/palette.h index c887220840..bfeb2dd658 100644 --- a/engines/tinsel/palette.h +++ b/engines/tinsel/palette.h @@ -36,12 +36,10 @@ typedef uint32 COLORREF; #define TINSEL_RGB(r,g,b) ((COLORREF)TO_LE_32(((uint8)(r)|((uint16)(g)<<8))|(((uint32)(uint8)(b))<<16))) #define TINSEL_GetRValue(rgb) ((uint8)(FROM_LE_32(rgb))) -#define TINSEL_GetGValue(rgb) ((uint8)(((uint16)(FROM_LE_32(rgb))) >> 8)) +#define TINSEL_GetGValue(rgb) ((uint8)(((uint16)(FROM_LE_32(rgb)))>>8)) #define TINSEL_GetBValue(rgb) ((uint8)((FROM_LE_32(rgb))>>16)) -#define PSXGetRValue(rgb) ((uint8)(FROM_LE_32(rgb) & 0x000000f8)) -#define PSXGetGValue(rgb) ((uint8)(FROM_LE_32((rgb) >> 8) & 0x000000f8)) -#define PSXGetBValue(rgb) ((uint8)(FROM_LE_32((rgb) >> 16) & 0x000000f8)) +#define TINSEL_PSX_RGB(r,g,b) ((uint16)TO_LE_16(((uint8)(r))|((uint16)(g)<<5)|(((uint16)(b))<<10))) enum { MAX_COLOURS = 256, //!< maximum number of colours - for VGA 256 |