From 699a525db4f932095bd5b2033b4293446e1e30cf Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 31 Jan 2010 18:01:49 +0000 Subject: SCI: removing unused DrawChar()/StdChar() from text class svn-id: r47765 --- engines/sci/graphics/text.cpp | 17 ----------------- engines/sci/graphics/text.h | 2 -- 2 files changed, 19 deletions(-) (limited to 'engines') 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); -- cgit v1.2.3