aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2010-01-31 18:01:49 +0000
committerMartin Kiewitz2010-01-31 18:01:49 +0000
commit699a525db4f932095bd5b2033b4293446e1e30cf (patch)
treef5affaff67fb9abc3fb9396ffa799308bc44b5a9
parent299fb1a9cc893ee895b40a17a02dc82906cca558 (diff)
downloadscummvm-rg350-699a525db4f932095bd5b2033b4293446e1e30cf.tar.gz
scummvm-rg350-699a525db4f932095bd5b2033b4293446e1e30cf.tar.bz2
scummvm-rg350-699a525db4f932095bd5b2033b4293446e1e30cf.zip
SCI: removing unused DrawChar()/StdChar() from text class
svn-id: r47765
-rw-r--r--engines/sci/graphics/text.cpp17
-rw-r--r--engines/sci/graphics/text.h2
2 files changed, 0 insertions, 19 deletions
diff --git a/engines/sci/graphics/text.cpp b/engines/sci/graphics/text.cpp
index 3c19b76758..480c1af971 100644
--- a/engines/sci/graphics/text.cpp
+++ b/engines/sci/graphics/text.cpp
@@ -105,23 +105,6 @@ void Text::ClearChar(int16 chr) {
_paint16->eraseRect(rect);
}
-void Text::DrawChar(int16 chr) {
- chr = chr & 0xFF;
- ClearChar(chr);
- StdChar(chr);
- _ports->_curPort->curLeft += GetFont()->getCharWidth(chr);
-}
-
-void Text::StdChar(int16 chr) {
-#if 0
- CResFont*res = getResFont();
- if (res)
- res->Draw(chr, _curPort->top + _curPort->curTop, _curPort->left
- + _curPort->curLeft, _vSeg, 320, _curPort->penClr,
- _curPort->textFace);
-#endif
-}
-
// This internal function gets called as soon as a '|' is found in a text
// It will process the encountered code and set new font/set color
// We only support one-digit codes currently, don't know if multi-digit codes are possible
diff --git a/engines/sci/graphics/text.h b/engines/sci/graphics/text.h
index bf6d771c79..976dec0037 100644
--- a/engines/sci/graphics/text.h
+++ b/engines/sci/graphics/text.h
@@ -50,8 +50,6 @@ public:
int16 CodeProcessing(const char *&text, GuiResourceId orgFontId, int16 orgPenColor);
void ClearChar(int16 chr);
- void DrawChar(int16 chr);
- void StdChar(int16 chr);
int16 GetLongest(const char *text, int16 maxWidth, GuiResourceId orgFontId);
void Width(const char *text, int16 from, int16 len, GuiResourceId orgFontId, int16 &textWidth, int16 &textHeight);