Skip to content

Commit

Permalink
XEEN: Fix rendering of Count Blackfang
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Aug 31, 2019
1 parent a7399c5 commit ada09b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions engines/xeen/sprites.cpp
Expand Up @@ -517,14 +517,14 @@ void SpriteDrawer5::rcr(uint16 &val, bool &cf) {

/*------------------------------------------------------------------------*/

const byte DRAWER6_COLOR[16] = { 1, 2, 4, 8, 1, 3, 7, 15, 8, 12, 14, 15, 1, 2, 1, 2 };
const byte DRAWER6_MASK[16] = { 1, 2, 4, 8, 1, 3, 7, 15, 8, 12, 14, 15, 1, 2, 1, 2 };

SpriteDrawer6::SpriteDrawer6(byte *data, size_t filesize, int index) : SpriteDrawer(data, filesize) {
_color = DRAWER6_COLOR[index];
_mask = DRAWER6_MASK[index];
}

void SpriteDrawer6::drawPixel(byte *dest, byte pixel) {
*dest = _color;
*dest = pixel ^ _mask;
}

} // End of namespace Xeen
2 changes: 1 addition & 1 deletion engines/xeen/sprites.h
Expand Up @@ -278,7 +278,7 @@ class SpriteDrawer5 : public SpriteDrawer {

class SpriteDrawer6 : public SpriteDrawer {
private:
byte _color;
byte _mask;
protected:
/**
* Output a pixel
Expand Down

0 comments on commit ada09b8

Please sign in to comment.