diff options
author | Filippos Karapetis | 2011-01-23 15:01:24 +0000 |
---|---|---|
committer | Filippos Karapetis | 2011-01-23 15:01:24 +0000 |
commit | 125078582262b40dfa53695c5e3e30d48f1ec380 (patch) | |
tree | c0678e6a8a2ef8e68372c71b3d1d66012ce65ddb /engines/sword25/gfx/text.cpp | |
parent | 04af67d736979272e17b0dcd0e3e4371fc0d07cc (diff) | |
download | scummvm-rg350-125078582262b40dfa53695c5e3e30d48f1ec380.tar.gz scummvm-rg350-125078582262b40dfa53695c5e3e30d48f1ec380.tar.bz2 scummvm-rg350-125078582262b40dfa53695c5e3e30d48f1ec380.zip |
SWORD25: Replaced BS_ASSERT() with assert()
svn-id: r55464
Diffstat (limited to 'engines/sword25/gfx/text.cpp')
-rw-r--r-- | engines/sword25/gfx/text.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sword25/gfx/text.cpp b/engines/sword25/gfx/text.cpp index 9609ef810b..5dad89207f 100644 --- a/engines/sword25/gfx/text.cpp +++ b/engines/sword25/gfx/text.cpp @@ -98,7 +98,7 @@ void Text::setColor(uint modulationColor) { } void Text::setAlpha(int alpha) { - BS_ASSERT(alpha >= 0 && alpha < 256); + assert(alpha >= 0 && alpha < 256); uint newModulationColor = (_modulationColor & 0x00ffffff) | alpha << 24; if (newModulationColor != _modulationColor) { _modulationColor = newModulationColor; @@ -147,7 +147,7 @@ bool Text::doRender() { // Framebufferobjekt holen. GraphicEngine *gfxPtr = Kernel::getInstance()->getGfx(); - BS_ASSERT(gfxPtr); + assert(gfxPtr); bool result = true; Common::Array<Line>::iterator iter = _lines.begin(); @@ -212,7 +212,7 @@ FontResource *Text::lockFontResource() { void Text::updateFormat() { FontResource *fontPtr = lockFontResource(); - BS_ASSERT(fontPtr); + assert(fontPtr); updateMetrics(*fontPtr); @@ -263,7 +263,7 @@ void Text::updateFormat() { if (lastSpace < _text.size()) { ++curLine; - BS_ASSERT(curLine == _lines.size()); + assert(curLine == _lines.size()); _lines.resize(curLine + 1); _lines[curLine].text = ""; } |