[Scummvm-cvs-logs] SF.net SVN: scummvm:[47765] scummvm/trunk/engines/sci/graphics
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Sun Jan 31 19:01:49 CET 2010
Revision: 47765
http://scummvm.svn.sourceforge.net/scummvm/?rev=47765&view=rev
Author: m_kiewitz
Date: 2010-01-31 18:01:49 +0000 (Sun, 31 Jan 2010)
Log Message:
-----------
SCI: removing unused DrawChar()/StdChar() from text class
Modified Paths:
--------------
scummvm/trunk/engines/sci/graphics/text.cpp
scummvm/trunk/engines/sci/graphics/text.h
Modified: scummvm/trunk/engines/sci/graphics/text.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/text.cpp 2010-01-31 17:57:51 UTC (rev 47764)
+++ scummvm/trunk/engines/sci/graphics/text.cpp 2010-01-31 18:01:49 UTC (rev 47765)
@@ -105,23 +105,6 @@
_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
Modified: scummvm/trunk/engines/sci/graphics/text.h
===================================================================
--- scummvm/trunk/engines/sci/graphics/text.h 2010-01-31 17:57:51 UTC (rev 47764)
+++ scummvm/trunk/engines/sci/graphics/text.h 2010-01-31 18:01:49 UTC (rev 47765)
@@ -50,8 +50,6 @@
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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list