From 02402695ce49c2bc416c62b42d7881ffacc956d3 Mon Sep 17 00:00:00 2001 From: KaiN Date: Sat, 4 May 2019 18:36:23 +0200 Subject: [PATCH] added unimplemented notice --- src/ace/managers/viewport/scrollbuffer.c | 1 + src/ace/managers/viewport/simplebuffer.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ace/managers/viewport/scrollbuffer.c b/src/ace/managers/viewport/scrollbuffer.c index 044e099a..a86b1e19 100644 --- a/src/ace/managers/viewport/scrollbuffer.c +++ b/src/ace/managers/viewport/scrollbuffer.c @@ -169,6 +169,7 @@ void scrollBufferProcess(tScrollBufferManager *pManager) { if(pManager->ubFlags & SCROLLBUFFER_FLAG_COPLIST_RAW) { // TODO: Raw mode + logWrite("ERR: Unimplemented %s:%d\n", __FILE__, __LINE__); } else { // Initial copper block diff --git a/src/ace/managers/viewport/simplebuffer.c b/src/ace/managers/viewport/simplebuffer.c index 842b9872..b0bc9b35 100644 --- a/src/ace/managers/viewport/simplebuffer.c +++ b/src/ace/managers/viewport/simplebuffer.c @@ -243,9 +243,9 @@ void simpleBufferProcess(tSimpleBufferManager *pManager) { // Calculate X movement: bitplane shift, starting word to fetch if(pManager->ubFlags & SIMPLEBUFFER_FLAG_X_SCROLLABLE) { - uwShift = (16-(pCamera->uPos.sUwCoord.uwX & 0xF)) & 0xF; + uwShift = (16 - (pCamera->uPos.sUwCoord.uwX & 0xF)) & 0xF; uwShift = (uwShift << 4) | uwShift; - ulBplOffs = ((pCamera->uPos.sUwCoord.uwX-1) >> 4) << 1; + ulBplOffs = ((pCamera->uPos.sUwCoord.uwX - 1) >> 4) << 1; } else { uwShift = 0;