aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorantoniou792018-12-16 19:47:27 +0200
committerEugene Sandulenko2018-12-25 12:35:52 +0100
commit8008f14fcd4026c4124e650529776c835dc24162 (patch)
treebac2cbdd5dee6063b716ca038cc573a0e94f76ae /engines
parentc5da2df9e83298ad680cadec635d2a5cd223ffb7 (diff)
downloadscummvm-rg350-8008f14fcd4026c4124e650529776c835dc24162.tar.gz
scummvm-rg350-8008f14fcd4026c4124e650529776c835dc24162.tar.bz2
scummvm-rg350-8008f14fcd4026c4124e650529776c835dc24162.zip
BLADERUNNER: Remove setBlackColor (for internal font shadow emulation)
Diffstat (limited to 'engines')
-rw-r--r--engines/bladerunner/font.cpp14
-rw-r--r--engines/bladerunner/font.h1
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);