From 551177908510bad6257bec76859bc5d4de8bc932 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Tue, 27 Dec 2011 02:18:52 +0000 Subject: DREAMWEB: Minor removal of runtime residue in vgagrafx.cpp Also, minor formatting fixes. --- engines/dreamweb/vgagrafx.cpp | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'engines/dreamweb') diff --git a/engines/dreamweb/vgagrafx.cpp b/engines/dreamweb/vgagrafx.cpp index 33a1770d93..7e74264dd7 100644 --- a/engines/dreamweb/vgagrafx.cpp +++ b/engines/dreamweb/vgagrafx.cpp @@ -281,13 +281,13 @@ void DreamBase::showFrame(const Frame *frameData, uint16 x, uint16 y, uint16 fra return; } -//notBlankShow: + // "notBlankShow" if ((effectsFlag & 128) == 0) { x += frame->x; y += frame->y; } -//skipOffsets: + // "skipOffsets" *width = frame->width; *height = frame->height; const uint8 *pSrc = ((const uint8 *)frameData) + frame->ptr() + 2080; @@ -297,27 +297,21 @@ void DreamBase::showFrame(const Frame *frameData, uint16 x, uint16 y, uint16 fra x -= *width / 2; y -= *height / 2; } - if (effectsFlag & 64) { //diffDest + if (effectsFlag & 64) { // diffDest error("Unsupported DreamBase::showFrame effectsFlag %d", effectsFlag); /* frameOutFx(es.ptr(0, dx * *height), pSrc, dx, *width, *height, x, y); return; */ } - if (effectsFlag & 8) { //printList - /* - push(ax); - al = x - data.word(kMapadx); - ah = y - data.word(kMapady); - //addToPrintList(); // NB: Commented in the original asm - ax = pop(); - */ + if (effectsFlag & 8) { // printList + //addToPrintList(x - data.word(kMapadx), y - data.word(kMapady)); // NB: Commented in the original asm } - if (effectsFlag & 4) { //flippedX + if (effectsFlag & 4) { // flippedX frameOutFx(workspace(), pSrc, 320, *width, *height, x, y); return; } - if (effectsFlag & 2) { //noMask + if (effectsFlag & 2) { // noMask frameOutNm(workspace(), pSrc, 320, *width, *height, x, y); return; } @@ -326,7 +320,7 @@ void DreamBase::showFrame(const Frame *frameData, uint16 x, uint16 y, uint16 fra return; } } -//noEffects: + // "noEffects" frameOutV(workspace(), pSrc, 320, *width, *height, x, y); return; } -- cgit v1.2.3