From 761fe5d7bd92f7224fe12b4cdf912b55ef1fb768 Mon Sep 17 00:00:00 2001 From: Ludvig Strigeus Date: Tue, 4 Dec 2001 10:44:33 +0000 Subject: * better drawBox (tnx sam_k) * more params allowed for soundKludge opcode (8 instead of 16) will perhaps fix bugs. svn-id: r3523 --- string.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'string.cpp') diff --git a/string.cpp b/string.cpp index e6a223ac94..0b369ec207 100644 --- a/string.cpp +++ b/string.cpp @@ -723,7 +723,7 @@ void CharsetRenderer::printChar(int chr) { _hasMask = true; #endif - _bg_ptr2 = _backbuff_ptr = _vm->getResourceAddress(rtBuffer, vs->number+1) + _dest_ptr = _backbuff_ptr = _vm->getResourceAddress(rtBuffer, vs->number+1) + vs->xstart + _drawTop * 320 + _left; #if !defined(OLD) @@ -731,7 +731,7 @@ void CharsetRenderer::printChar(int chr) { #else if (1) { #endif - _bg_ptr2 = _bgbak_ptr = _vm->getResourceAddress(rtBuffer, vs->number+5) + _dest_ptr = _bgbak_ptr = _vm->getResourceAddress(rtBuffer, vs->number+5) + vs->xstart + _drawTop * 320 + _left; } @@ -774,7 +774,7 @@ void CharsetRenderer::drawBits() { bits = *_charPtr++; numbits = 8; - dst = _bg_ptr2; + dst = _dest_ptr; mask = _mask_ptr; y = 0; @@ -801,7 +801,7 @@ void CharsetRenderer::drawBits() { maskpos++; } } - dst = (_bg_ptr2 += 320); + dst = (_dest_ptr += 320); mask += 40; y++; } -- cgit v1.2.3