aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx/staticbitmap.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2011-01-23 14:49:50 +0000
committerFilippos Karapetis2011-01-23 14:49:50 +0000
commit00a0f8d15df8f241741e4a9a68a71641715ae062 (patch)
treed40be8437f7ca54dab9c77145bf72550bc5a3150 /engines/sword25/gfx/staticbitmap.cpp
parent411d41d3d0a3e4d14187d4a980c25c0a2e41ad9c (diff)
downloadscummvm-rg350-00a0f8d15df8f241741e4a9a68a71641715ae062.tar.gz
scummvm-rg350-00a0f8d15df8f241741e4a9a68a71641715ae062.tar.bz2
scummvm-rg350-00a0f8d15df8f241741e4a9a68a71641715ae062.zip
SWORD25: Removed the custom log class and replaced it with warning/error/debugC calls
svn-id: r55462
Diffstat (limited to 'engines/sword25/gfx/staticbitmap.cpp')
-rw-r--r--engines/sword25/gfx/staticbitmap.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/sword25/gfx/staticbitmap.cpp b/engines/sword25/gfx/staticbitmap.cpp
index 3019fe0ac1..c9f3758505 100644
--- a/engines/sword25/gfx/staticbitmap.cpp
+++ b/engines/sword25/gfx/staticbitmap.cpp
@@ -40,8 +40,6 @@
namespace Sword25 {
-#define BS_LOG_PREFIX "STATICBITMAP"
-
StaticBitmap::StaticBitmap(RenderObjectPtr<RenderObject> parentPtr, const Common::String &filename) :
Bitmap(parentPtr, TYPE_STATICBITMAP) {
// Das BS_Bitmap konnte nicht erzeugt werden, daher muss an dieser Stelle abgebrochen werden.
@@ -60,11 +58,11 @@ bool StaticBitmap::initBitmapResource(const Common::String &filename) {
// Bild-Resource laden
Resource *resourcePtr = Kernel::getInstance()->getResourceManager()->requestResource(filename);
if (!resourcePtr) {
- BS_LOG_ERRORLN("Could not request resource \"%s\".", filename.c_str());
+ warning("Could not request resource \"%s\".", filename.c_str());
return false;
}
if (resourcePtr->getType() != Resource::TYPE_BITMAP) {
- BS_LOG_ERRORLN("Requested resource \"%s\" is not a bitmap.", filename.c_str());
+ error("Requested resource \"%s\" is not a bitmap.", filename.c_str());
return false;
}
@@ -130,7 +128,7 @@ uint StaticBitmap::getPixel(int x, int y) const {
}
bool StaticBitmap::setContent(const byte *pixeldata, uint size, uint offset, uint stride) {
- BS_LOG_ERRORLN("SetContent() ist not supported with this object.");
+ error("SetContent() ist not supported with this object.");
return false;
}