1
0
mirror of https://frontier.innolan.net/github/AmigaExamples.git synced 2026-05-11 02:51:37 +00:00

cleaned up palette handling a bit

This commit is contained in:
alpine9000
2016-04-19 13:29:53 +10:00
parent 942e57e826
commit fbc2a85fd9
9 changed files with 79 additions and 367 deletions

View File

@@ -116,7 +116,7 @@ palette_output(imagecon_image_t* ic, char* outFilename)
}
if (fp) {
fprintf(fp, "\tdc.w $%x,$%x\n", 0x180+(i*2), RGB24TORGB12(ic->palette[i].r) << 8 | RGB24TORGB12(ic->palette[i].g) << 4 | RGB24TORGB12(ic->palette[i].b));
fprintf(fp, "\tdc.w $%x,$%x\n", 0x180+((i+config.paletteOffset)*2), RGB24TORGB12(ic->palette[i].r) << 8 | RGB24TORGB12(ic->palette[i].g) << 4 | RGB24TORGB12(ic->palette[i].b));
}
}