diff options
| author | Colin Snover | 2016-05-28 09:02:41 -0500 |
|---|---|---|
| committer | Colin Snover | 2016-05-28 09:14:33 -0500 |
| commit | c8019487f92b44b685ccc066c81fcaf0c30715d2 (patch) | |
| tree | 40e39c63203934e1a400bfebb190f680b146bb97 /engines/sci/graphics/controls32.cpp | |
| parent | 506549ae45e09b9c4c0c9c786077c429533ce53c (diff) | |
| download | scummvm-rg350-c8019487f92b44b685ccc066c81fcaf0c30715d2.tar.gz scummvm-rg350-c8019487f92b44b685ccc066c81fcaf0c30715d2.tar.bz2 scummvm-rg350-c8019487f92b44b685ccc066c81fcaf0c30715d2.zip | |
SCI32: Remove unused titled text bitmap code
Titled text bitmaps do not appear to be used by any game scripts.
They seem to only be used by the error manager in SSCI, but
ScummVM has its own error handling, so we don’t need this
implementation.
Diffstat (limited to 'engines/sci/graphics/controls32.cpp')
| -rw-r--r-- | engines/sci/graphics/controls32.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/sci/graphics/controls32.cpp b/engines/sci/graphics/controls32.cpp index a877d8c276..faf1d7d1a2 100644 --- a/engines/sci/graphics/controls32.cpp +++ b/engines/sci/graphics/controls32.cpp @@ -104,10 +104,7 @@ reg_t GfxControls32::kernelEditText(const reg_t controlObject) { bool dimmed = readSelectorValue(_segMan, controlObject, SELECTOR(dimmed)); editor.bitmap = _gfxText32->createFontBitmap(width, height, editor.textRect, editor.text, editor.foreColor, editor.backColor, editor.skipColor, editor.fontId, alignment, editor.borderColor, dimmed, true); } else { - Common::String title = _segMan->getString(titleObject); - int16 titleBackColor = readSelectorValue(_segMan, controlObject, SELECTOR(titleBack)); - int16 titleForeColor = readSelectorValue(_segMan, controlObject, SELECTOR(titleFore)); - editor.bitmap = _gfxText32->createTitledBitmap(width, height, editor.textRect, editor.text, editor.foreColor, editor.backColor, editor.skipColor, editor.fontId, alignment, editor.borderColor, title, titleForeColor, titleBackColor, titleFontId, true); + error("Titled bitmaps are not known to be used by any game. Please submit a bug report with details about the game you were playing and what you were doing that triggered this error. Thanks!"); } } |
