Order of the Butterfly
Posts: 171 from 2006/10/6
From: Spain
Crumb:
Thanks a lot, i will check the script.
Raistlin77it:
There are two ways to set the screen palette, one is using fb_setPalette that set the screen palette with a bitmap palette. It is called in this way:
fb_setPalette(frameBufferStruct, bitmapStruct);
I have implemented other way to do this, iff.library was a little buggy on MorphOS, and i got some problems with bitmaps palette, first executions worked, but after some executions the palette isn't readed correctly, it's very similar to your problem with the engine, but this problem was solved using iffparse, at least it works on my system. It is called in this way:
bm_savePalette(bitmapStruct, fileName)
fb_loadPalette(frameBufferStruct, fileName)
The file saved with save palette has a very simple format, it's word aligned, first word is the number of colors, and after that comes all colors in a word format (4 bits per channel, AGA isn't supported yet). This way should work even if you have problems to extract color map palette from iff files, you should call fb_savePalette and execute it to store the palette on a independent file. Later you can restore the palette from this file. But it's very strange that you have exactly the same bug i have when the engine used iff.library, now i have solved with iffparse.library. I do apologize because the engine isn't supplied with a decent documentation, but i released it before i was planned.
EditedI have tested my engine on my A600 and it is buggy, i have tested it on EUAE also with the same result, i will check what happens.
EditedI have found two bugs, one was related with palette, and the other was found on bm_dealloc, that hangs my A600 and EUAE. You can download a new version here:
rge_iffparse.lha[ Edited by BalrogSoft 15.12.2011 - 13:45 ]Balrog Software -
AmigaSkool.netMac Mini - MorphOS 3.8 - G4 1.5Ghz - Ati 9200 64 Mb
Efika - MorphOS 3.6 - Ati 9200 64Mb - 80 Gb HD
Amiga 1200D - OS 3.9 - Blizzard 603e/240mh