since 0.8.3 the tutorial ILBMShow.bas has a problem - some wrong colors in the image
I dived a little into it:
ILBM LOAD BITMAP picFileName,,, @meta, @cmap
meta.viewModes = 135296: REM this is my workaround - value &H21080 from 0.8.2 - &H80 works too
TRACE SIZEOF(ILBM_META_T): REM in 0.8.2 it is 24 - now 30
TRACE meta.nPlanes: REM 6
TRACE meta.viewModes
FOR i AS integer = 0 TO cmap.numEntries
TRACE i, cmap.colors(i).r, cmap.colors(i).g, cmap.colors(i).B
NEXT i
two strange things:
In 0.8.2 viewModes shows the value 135296,
since 0.8.3 it is zero after LOAD - I think, at least the halfbrite bit is missed
If you set viewModes to 135296 or &H80 the image shows correct.
The TRACE of colors shows values in wrong place
Every second entry is skipped
I think in 0.8.2 it was shown right
since 0.8.3 the tutorial ILBMShow.bas has a problem - some wrong colors in the image
I dived a little into it:
ILBM LOAD BITMAP picFileName,,, @meta, @cmap meta.viewModes = 135296: REM this is my workaround - value &H21080 from 0.8.2 - &H80 works too TRACE SIZEOF(ILBM_META_T): REM in 0.8.2 it is 24 - now 30 TRACE meta.nPlanes: REM 6 TRACE meta.viewModes FOR i AS integer = 0 TO cmap.numEntries TRACE i, cmap.colors(i).r, cmap.colors(i).g, cmap.colors(i).B NEXT i
two strange things:
In 0.8.2 viewModes shows the value 135296, since 0.8.3 it is zero after LOAD - I think, at least the halfbrite bit is missed If you set viewModes to 135296 or &H80 the image shows correct.
The TRACE of colors shows values in wrong place Every second entry is skipped I think in 0.8.2 it was shown right