From 8e7ea5d461ef22e66a340e8c22497655f1a84f30 Mon Sep 17 00:00:00 2001 From: Bertrand Augereau Date: Fri, 18 Nov 2011 14:58:23 +0100 Subject: DREAMWEB: 'worktoscreen' C++ flavour without dirtying the regs --- engines/dreamweb/stubs.h | 1 + engines/dreamweb/vgagrafx.cpp | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3