diff options
author | Bertrand Augereau | 2011-11-18 14:58:23 +0100 |
---|---|---|
committer | Bertrand Augereau | 2011-11-18 14:58:23 +0100 |
commit | 8e7ea5d461ef22e66a340e8c22497655f1a84f30 (patch) | |
tree | 5a7356311fce7c642bb5018c2d7e1ee83af0de5e | |
parent | 991370542b8276ac6a337c9efc0b6b66e890e6f5 (diff) | |
download | scummvm-rg350-8e7ea5d461ef22e66a340e8c22497655f1a84f30.tar.gz scummvm-rg350-8e7ea5d461ef22e66a340e8c22497655f1a84f30.tar.bz2 scummvm-rg350-8e7ea5d461ef22e66a340e8c22497655f1a84f30.zip |
DREAMWEB: 'worktoscreen' C++ flavour without dirtying the regs
-rw-r--r-- | engines/dreamweb/stubs.h | 1 | ||||
-rw-r--r-- | engines/dreamweb/vgagrafx.cpp | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h index 38c0932319..892a24e11d 100644 --- a/engines/dreamweb/stubs.h +++ b/engines/dreamweb/stubs.h @@ -46,6 +46,7 @@ void frameoutbh(uint8 *dst, const uint8 *src, uint16 pitch, uint16 width, uint16 height, uint16 x, uint16 y); void frameoutfx(uint8 *dst, const uint8 *src, uint16 pitch, uint16 width, uint16 height, uint16 x, uint16 y); void worktoscreen(); + void workToScreenCPP(); void multiget(); void multiget(uint8 *dst, uint16 x, uint16 y, uint8 width, uint8 height); void convertkey(); diff --git a/engines/dreamweb/vgagrafx.cpp b/engines/dreamweb/vgagrafx.cpp index 11ba45f7eb..9871b5e998 100644 --- a/engines/dreamweb/vgagrafx.cpp +++ b/engines/dreamweb/vgagrafx.cpp @@ -94,9 +94,13 @@ void DreamGenContext::multidump() { cx = 0; } +void DreamGenContext::workToScreenCPP() { + engine->blit(workspace(), 320, 0, 0, 320, 200); +} + void DreamGenContext::worktoscreen() { + workToScreenCPP(); uint size = 320 * 200; - engine->blit(workspace(), 320, 0, 0, 320, 200); di = si = size; cx = 0; } |