1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2025-01-02 12:33:07 +00:00

Attempt chroma cycle reset after grey output

This commit is contained in:
David Schmenk 2024-12-08 12:00:19 -08:00
parent 60baf4ce5f
commit efa87a5473

View File

@ -288,6 +288,7 @@ def rgbImportExport(rgbfile, dhgrfile)#0
rgbScanline->[i+GRN] = gamma[rgbScanline->[i+GRN]]
rgbScanline->[i+BLU] = gamma[rgbScanline->[i+BLU]]
next
memset(@ntscCycle, $4040, 12) // Start with artificial grey chroma cycle
rgbptr = rgbScanline
errptr = rgbErr
for i = 0 to 559
@ -296,15 +297,15 @@ def rgbImportExport(rgbfile, dhgrfile)#0
fin
rgbptr = rgbptr + 3
errptr = errptr + 3 * 2
// Map dark grey to light grey
// Special grey handling
if (i & 3) == 3
when dcgrGetPixel(i >> 2, j)
is 5 // GREY1
is 5 // GREY1 -> map to GREY2
dhgrOp(OP_SRC)
dcgrColor(10)
dcgrPixel(i >> 2, j)
is 10 // GREY2
memset(@ntscCycle, $8080, 12) // Create artificial grey chroma cycle
memset(@ntscCycle, $0000, 12) // Create artificial grey chroma cycle
wend
fin
next