From 103f52cceff15419492030c41cb972f1bb4a7ee3 Mon Sep 17 00:00:00 2001 From: jonschz Date: Sun, 4 May 2025 11:02:32 +0200 Subject: [PATCH] Add more small fixes --- LEGO1/omni/src/video/flic.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/LEGO1/omni/src/video/flic.cpp b/LEGO1/omni/src/video/flic.cpp index c49a0909..546caa1d 100644 --- a/LEGO1/omni/src/video/flic.cpp +++ b/LEGO1/omni/src/video/flic.cpp @@ -380,28 +380,28 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat do { + // TODO: Can the typecast be removed? // LINE: BETA10 0x1013e692 - token = *((short*) data); - data += 2; // TODO: likely an otherData assignment + token = *((short*) data++); if (token < 0) { if (token & 0x4000) { // TODO: Make the compiler move this code all the way to the top of the loop // // LINE: BETA10 0x1013e684 row += token; - // TODO: otherData assigment continue; } WritePixel(p_bitmapHeader, p_pixelData, width, row, token); - token = *((WORD*) data); - data += 2; + token = *((WORD*) data++); + // LINE: BETA10 0x1013e6ef if (!token) { row--; if (--lines <= 0) { return; } + // TODO: Something is off about these breaks and jumps -- too many JMP instructions } else { break; @@ -411,7 +411,7 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat break; } - short column = 0; + short column = xofs; do { column += *(data++); short type = *((char*) data++);