From b249757c54518ef1210f05360325ca65e07a1544 Mon Sep 17 00:00:00 2001 From: jonschz Date: Sun, 4 May 2025 11:18:49 +0200 Subject: [PATCH] small fixes --- LEGO1/omni/src/video/flic.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LEGO1/omni/src/video/flic.cpp b/LEGO1/omni/src/video/flic.cpp index 93411970..1eb2df95 100644 --- a/LEGO1/omni/src/video/flic.cpp +++ b/LEGO1/omni/src/video/flic.cpp @@ -420,7 +420,7 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat if (type >= 0) { WritePixels(p_bitmapHeader, p_pixelData, column, row, (BYTE*) data, type); column += type; - data += type; + data = (short*)( (char*)data + type); // LINE: BETA10 0x1013e797 if (--token == 0) { break; @@ -428,8 +428,8 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat } else { type = -type; - short p_pixel = *((WORD*) data++); - WritePixelPairs(p_bitmapHeader, p_pixelData, column, row, p_pixel, type >> 1); + WORD* p_pixel = ((WORD*) data++); + WritePixelPairs(p_bitmapHeader, p_pixelData, column, row, *p_pixel, type >> 1); column += type; // LINE: BETA10 0x1013e813 if (--token == 0) {