diff options
author | Filippos Karapetis | 2016-03-15 11:29:24 +0200 |
---|---|---|
committer | Filippos Karapetis | 2016-03-15 11:29:24 +0200 |
commit | 16a7bcb0c35ff0d97b943d941a252df424c0a427 (patch) | |
tree | 92704251feeca4b86aa96143ea6beb0a5453c655 /engines | |
parent | 55390e77b1483284fe5782b742bd1eb126e4b9a1 (diff) | |
download | scummvm-rg350-16a7bcb0c35ff0d97b943d941a252df424c0a427.tar.gz scummvm-rg350-16a7bcb0c35ff0d97b943d941a252df424c0a427.tar.bz2 scummvm-rg350-16a7bcb0c35ff0d97b943d941a252df424c0a427.zip |
SCI32: Implement kBitmapSetDisplace
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/kgraphics32.cpp | 6 |
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) { |