Franxis
MAME 4 ALL
This post is dedicated to DaveC...
I use the following #define to get the colors of the palette:
#define GP_RGB24(r,g,b) ((((((r>>3))&0x1f)<<11)|((((g>>3))&0x1f)<<6)|((((b>>3))&0x1f)<<1))&0xfffe)
Then the intensity bit is set to 0, then i don't know why DaveC says that the gamma is too high...
Also i change the MAME palette with the following code:
GP_PALETTEENTRY colorgp;
colorgp = GP_RGB24(r,g,b);
GpPaletteEntryChange(i,1,&colorgp,GPC_PAL_ASYNC_REALIZE);
In other way, the palette of the images in the frontend has been created with GP32 Converter with intensity bit set to 0 (i have checked black color as 0x0 in the generated .h file). In this cases I assign the palette directly from the .h file without any conversion:
for (c=0;c<256;c++) {
GpPaletteEntryChange(c,1,&gp32splash_Pal[c],0);
}
Then, i'm doing something bad??? Why the gamma is too high???
Is there any way to modify the gamma in the gp32???
Regards.
I use the following #define to get the colors of the palette:
#define GP_RGB24(r,g,b) ((((((r>>3))&0x1f)<<11)|((((g>>3))&0x1f)<<6)|((((b>>3))&0x1f)<<1))&0xfffe)
Then the intensity bit is set to 0, then i don't know why DaveC says that the gamma is too high...
Also i change the MAME palette with the following code:
GP_PALETTEENTRY colorgp;
colorgp = GP_RGB24(r,g,b);
GpPaletteEntryChange(i,1,&colorgp,GPC_PAL_ASYNC_REALIZE);
In other way, the palette of the images in the frontend has been created with GP32 Converter with intensity bit set to 0 (i have checked black color as 0x0 in the generated .h file). In this cases I assign the palette directly from the .h file without any conversion:
for (c=0;c<256;c++) {
GpPaletteEntryChange(c,1,&gp32splash_Pal[c],0);
}
Then, i'm doing something bad??? Why the gamma is too high???
Is there any way to modify the gamma in the gp32???
Regards.