gooofy / aqb

A BASIC Compiler and IDE for Amiga Computers
MIT License
74 stars 7 forks source link

ILBM LOAD BITMAP broken? #32

Closed blackborn66 closed 1 year ago

blackborn66 commented 1 year ago

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:

  1. 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.

  2. The TRACE of colors shows values in wrong place Every second entry is skipped I think in 0.8.2 it was shown right

blackborn66 commented 1 year ago

It works again - is fixed.