aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/sword25/gfx/image/imageloader.h2
-rw-r--r--engines/sword25/gfx/opengl/glimage.cpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/sword25/gfx/image/imageloader.h b/engines/sword25/gfx/image/imageloader.h
index 968ea35af8..3d8e5cd05d 100644
--- a/engines/sword25/gfx/image/imageloader.h
+++ b/engines/sword25/gfx/image/imageloader.h
@@ -141,6 +141,8 @@ protected:
_ImageLoaderList.push_front(this);
}
+ virtual ~BS_ImageLoader() {}
+
//@{
/** @name Abstrakte Methoden */
diff --git a/engines/sword25/gfx/opengl/glimage.cpp b/engines/sword25/gfx/opengl/glimage.cpp
index 0b0c2c1f7c..4b7f8e6179 100644
--- a/engines/sword25/gfx/opengl/glimage.cpp
+++ b/engines/sword25/gfx/opengl/glimage.cpp
@@ -41,6 +41,8 @@
#include "sword25/gfx/opengl/openglgfx.h"
#include "sword25/gfx/opengl/glimage.h"
+#include "common/system.h"
+
namespace Sword25 {
#define BS_LOG_PREFIX "GLIMAGE"
@@ -221,6 +223,8 @@ bool BS_GLImage::Blit(int PosX, int PosY,
if (alphawarn)
warning("STUB: alpha image");
+ g_system->copyRectToScreen((byte *)_backSurface->getBasePtr(PosX, PosY), _backSurface->pitch, PosX, PosY, w, h);
+
return true;
}