diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/bladerunner/font.cpp | 14 | ||||
-rw-r--r-- | engines/bladerunner/font.h | 1 |
2 files changed, 0 insertions, 15 deletions
diff --git a/engines/bladerunner/font.cpp b/engines/bladerunner/font.cpp index 0f0307b161..5d9274f59c 100644 --- a/engines/bladerunner/font.cpp +++ b/engines/bladerunner/font.cpp @@ -176,20 +176,6 @@ void Font::replaceColor(uint16 oldColor, uint16 newColor) { } } -// This is useful when using a duplicate of the internal font to act as shadow effect for the glyphs for subtitles -// Mainly needed for the internal font for subtitles, since an external font can have shadow already drawn for the glyphs -void Font::setBlackColor() { - if (!_data || !_dataSize) { - return; - } - for (int i = 0; i < _dataSize; i++) { - //debug("COLOR EXISTING: %d", _data[i]); - if (_data[i] != 32768) { // 0x8000 is transparent - _data[i] = 0x0000; // black - } - } -} - void Font::drawCharacter(const uint8 character, Graphics::Surface &surface, int x, int y) const { uint8 characterIndex = character + 1; if (x < 0 || x >= _screenWidth || y < 0 || y >= _screenHeight || !_data || characterIndex >= _characterCount) { diff --git a/engines/bladerunner/font.h b/engines/bladerunner/font.h index 42efa2d6d3..4af25468c6 100644 --- a/engines/bladerunner/font.h +++ b/engines/bladerunner/font.h @@ -66,7 +66,6 @@ public: void setSpacing(int spacing1, int spacing2); void setColor(uint16 color); - void setBlackColor(); // for subtitles (when using internal font) - in order to emulate shadows void draw(const Common::String &text, Graphics::Surface &surface, int x, int y) const; void drawColor(const Common::String &text, Graphics::Surface &surface, int x, int y, uint16 color); |