aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx/opengl/glimage.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2010-08-15 21:13:43 +0000
committerEugene Sandulenko2010-10-12 22:48:22 +0000
commita87dbb4c609780030f2d330bcf1d9937c1440bd6 (patch)
tree9d47adf92f36a0c5ef370dcf0867afa68a635a93 /engines/sword25/gfx/opengl/glimage.cpp
parent24db2ad73989131227d81c34463ea89cdfb64f6e (diff)
downloadscummvm-rg350-a87dbb4c609780030f2d330bcf1d9937c1440bd6.tar.gz
scummvm-rg350-a87dbb4c609780030f2d330bcf1d9937c1440bd6.tar.bz2
scummvm-rg350-a87dbb4c609780030f2d330bcf1d9937c1440bd6.zip
SWORD25: Actually blit images to screen.
svn-id: r53250
Diffstat (limited to 'engines/sword25/gfx/opengl/glimage.cpp')
-rw-r--r--engines/sword25/gfx/opengl/glimage.cpp4
1 files changed, 4 insertions, 0 deletions
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;
}