diff options
author | Nipun Garg | 2019-07-13 03:52:04 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:18 +0200 |
commit | 190b550caaa8b5070e9fdda78555b30e1a340af3 (patch) | |
tree | cd07b8936ea6cbfb133faaa737b7083379cc72a0 /engines/hdb/gfx.h | |
parent | 0bd8e53f88ef40318a90a0c8568d88762ee841a4 (diff) | |
download | scummvm-rg350-190b550caaa8b5070e9fdda78555b30e1a340af3.tar.gz scummvm-rg350-190b550caaa8b5070e9fdda78555b30e1a340af3.tar.bz2 scummvm-rg350-190b550caaa8b5070e9fdda78555b30e1a340af3.zip |
HDB: Replace original color functions
With the ones from Graphics::PixelFormat
Diffstat (limited to 'engines/hdb/gfx.h')
-rw-r--r-- | engines/hdb/gfx.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/engines/hdb/gfx.h b/engines/hdb/gfx.h index d0d9681200..a9df0c349e 100644 --- a/engines/hdb/gfx.h +++ b/engines/hdb/gfx.h @@ -166,20 +166,6 @@ public: void turnOnBonusStars(int which); void drawBonusStars(); - // Macro to convert RGB into 16-bit - uint16 rgbTo565(int r, int g, int b) { - return (uint16) ( - ((r & 0xf8) << 8) | - ((g & 0xfc) << 3) | - ((b & 0xf8) >> 3) - ); - } - - // Macros to get RGB from 565 short -#define getR( x ) ( ( x & 0xf800 ) >> 8 ) -#define getG( x ) ( ( x & 0x07e0 ) >> 3 ) -#define getB( x ) ( ( x & 0x001f ) << 3 ) - private: int _numTiles; TileLookup *_tLookupArray; |