aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/kgraphics32.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/sci/engine/kgraphics32.cpp b/engines/sci/engine/kgraphics32.cpp
index 63c1b1fc55..429d3b5673 100644
--- a/engines/sci/engine/kgraphics32.cpp
+++ b/engines/sci/engine/kgraphics32.cpp
@@ -657,9 +657,11 @@ reg_t kBitmapInvert(EngineState *s, int argc, reg_t *argv) {
}
reg_t kBitmapSetDisplace(EngineState *s, int argc, reg_t *argv) {
- // bitmap, x, y
+ BitmapResource bitmap(argv[0]);
+ Common::Point newPos(argv[1].toUint16(), argv[2].toUint16());
+ bitmap.setDisplace(newPos);
- return kStubNull(s, argc + 1, argv - 1);
+ return s->r_acc;
}
reg_t kBitmapCreateFromView(EngineState *s, int argc, reg_t *argv) {