From e1f0ed90e3649c57065d49e46d57281730db2e78 Mon Sep 17 00:00:00 2001 From: Laurence Bank Date: Thu, 6 Feb 2025 13:13:35 +0000 Subject: [PATCH] Fixed createVirtual for new color lookup table pointer --- src/bb_ep.inl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bb_ep.inl b/src/bb_ep.inl index a4d187f..ca2a432 100644 --- a/src/bb_ep.inl +++ b/src/bb_ep.inl @@ -1529,15 +1529,19 @@ int bbepCreateVirtual(BBEPDISP *pBBEP, int iWidth, int iHeight, int iFlags) pBBEP->chip_type = BBEP_CHIP_NONE; // select the correct pixel drawing functions (2/3/4 color) if (iFlags & BBEP_4COLOR) { + pBBEP->pColorLookup = u8Colors_4clr; pBBEP->pfnSetPixel = bbepSetPixel4Clr; pBBEP->pfnSetPixelFast = bbepSetPixelFast4Clr; } else if (iFlags & BBEP_3COLOR) { + pBBEP->pColorLookup = u8Colors_3clr; pBBEP->pfnSetPixel = bbepSetPixel3Clr; pBBEP->pfnSetPixelFast = bbepSetPixelFast3Clr; } else if (pBBEP->iFlags & BBEP_7COLOR) { + pBBEP->pColorLookup = u8Colors_7clr; pBBEP->pfnSetPixel = bbepSetPixel16Clr; pBBEP->pfnSetPixelFast = bbepSetPixelFast16Clr; } else { // must be B/W + pBBEP->pColorLookup = u8Colors_2clr; pBBEP->pfnSetPixel = bbepSetPixel2Clr; pBBEP->pfnSetPixelFast = bbepSetPixelFast2Clr; }