static int color_table_index;
static bool color_table_changed;
#define COLOR_TABLE_ENTRIES 2
-static uae_u8 color_tables[COLOR_TABLE_ENTRIES * 256 * sizeof(uae_u32)];
+static uae_u8 color_tables[COLOR_TABLE_ENTRIES * 512 * sizeof(uae_u32)];
#define HSYNCTIME (maxhpos * CYCLE_UNIT)
uae_u32 cval = (cr << 16) | (cg << 8) | cb;
agnus_colors.color_regs_aga[colreg] = cval;
+ agnus_colors.acolors[colreg] = getxcolor(cval);
} else {
return &dummyrgaaddr;
}
-
uae_u8 *save_custom_slots(size_t *len, uae_u8 *dstptr)
{
uae_u8 *dstbak, *dst;
if (color_table_index >= COLOR_TABLE_ENTRIES) {
color_table_index = 0;
}
- l->linecolorstate = color_tables + color_table_index * 256 * sizeof(uae_u32);
+ l->linecolorstate = color_tables + color_table_index * 512 * sizeof(uae_u32);
uae_u8 *dpt = l->linecolorstate;
+ memcpy(dpt, agnus_colors.acolors, colors * sizeof(uae_u32));
+ dpt += 256 * sizeof(uae_u32);
if (aga_mode) {
memcpy(dpt, agnus_colors.color_regs_aga, colors * sizeof(uae_u32));
} else {
}
color_table_changed = false;
} else {
- l->linecolorstate = color_tables + color_table_index * 256 * sizeof(uae_u32);
+ l->linecolorstate = color_tables + color_table_index * 512 * sizeof(uae_u32);
}
l->color0 = aga_mode ? agnus_colors.color_regs_aga[0] : agnus_colors.color_regs_ecs[0];
bool ecsena = ecs_denise && (ls->bplcon0 & 1) != 0;
bool brdblank = (ls->bplcon3 & 0x20) && ecsena;
- uae_u32 bgcol;
- if (aga_mode) {
- bgcol = brdblank ? 0x000000 : ls->color0;
- } else {
- bgcol = brdblank ? 0x000000 : xcolors[ls->color0];
- }
+ uae_u32 bgcol = brdblank ? 0x000000 : getxcolor(ls->color0);
int hbstrt_offset = ls->hbstrt_offset >> rshift;
int hbstop_offset = ls->hbstop_offset >> rshift;
uae_u32 bgcol;
if (aga_mode) {
- bgcol = brdblank ? 0x000000 : ls->color0;
+ bgcol = brdblank ? 0x000000 : getxcolor(ls->color0);
} else if (res == 2) {
bgcol = brdblank ? 0x000000 : bordercolor_ecs_shres;
} else {
- bgcol = brdblank ? 0x000000 : xcolors[ls->color0];
+ bgcol = brdblank ? 0x000000 : getxcolor(ls->color0);
}
//bgcol = 0xff00;
if (modes == CMODE_DUALPF) {
outf("{");
outf("uae_u8 dpval = dpf_lookup[c];");
- outf("%s = xcolors[colors_ocs[dpval]];", colname);
+ outf("%s = acolors[dpval];", colname);
outf("}");
} else if (modes == CMODE_HAM) {
outf("%s = decode_ham_pixel_fast(c, colors_ocs);", colname);
} else if (modes == CMODE_EXTRAHB_ECS_KILLEHB) {
- outf("%s = xcolors[colors_ocs[c & 31]];", colname);
+ outf("%s = acolors[c & 31];", colname);
} else if (modes == CMODE_EXTRAHB) {
outf("c &= bplehb_mask;");
outf("if (c <= 31) {");
- outf(" %s = xcolors[colors_ocs[c]];", colname);
+ outf(" %s = acolors[c];", colname);
outf("} else {");
outf(" %s = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];", colname);
outf("}");
} else {
- outf("%s = xcolors[colors_ocs[c]];", colname);
+ outf("%s = acolors[c];", colname);
}
}
outf(" dpval += dblpfofs[bpldualpf2of];");
outf("}");
outf("dpval ^= bxor;");
- outf("%s = colors_aga[dpval];", colname);
+ outf("%s = acolors[dpval];", colname);
outf("}");
} else if (modes == CMODE_HAM) {
outf("%s = decode_ham_pixel_aga_fast(c, planes, bxor, colors_aga);", colname);
} else if (modes == CMODE_EXTRAHB_ECS_KILLEHB) {
outf("c ^= bxor;");
- outf("%s = colors_aga[c & 31];", colname);
+ outf("%s = acolors[c & 31];", colname);
} else if (modes == CMODE_EXTRAHB) {
outf("c ^= bxor;");
outf("if (c & 0x20) {");
outf(" uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;");
outf(" %s = CONVERT_RGB(v);", colname);
outf("} else {");
- outf(" %s = colors_aga[c];", colname);
+ outf(" %s = acolors[c];", colname);
outf("}");
} else {
outf("c ^= bxor;");
- outf("%s = colors_aga[c];", colname);
+ outf("%s = acolors[c];", colname);
}
}
{
int doubling = outres - res;
+ outf("uae_u32 *acolors = (uae_u32*)ls->linecolorstate;");
if (aga) {
- outf("uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;");
+ outf("uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));");
} else {
- outf("uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;");
+ outf("uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));");
}
if (aga) {
outf("uae_u8 bxor = ls->bplcon4 >> 8;");
static void lts_aga_n_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
}
}
static void lts_aga_dpf_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ehb_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ham_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
}
}
static void lts_aga_n_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpadds[0];
}
static void lts_aga_n_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
c ^= bxor;
- colf = colors_aga[c];
+ colf = acolors[c];
col = filter_pixel(col, colf);
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_dpf_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_aga_dpf_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- colf = colors_aga[dpval];
+ colf = acolors[dpval];
}
col = filter_pixel(col, colf);
cp += cpadds[0];
}
static void lts_aga_ehb_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_aga_ehb_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
colf = CONVERT_RGB(v);
} else {
- colf = colors_aga[c];
+ colf = acolors[c];
}
col = filter_pixel(col, colf);
cp += cpadds[0];
}
static void lts_aga_ham_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_ham_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpadds[0];
}
static void lts_aga_kehb_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
c ^= bxor;
- colf = colors_aga[c & 31];
+ colf = acolors[c & 31];
col = filter_pixel(col, colf);
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_n_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[1];
*buf1++ = col;
}
}
static void lts_aga_dpf_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[1];
*buf1++ = col;
}
static void lts_aga_ehb_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[1];
*buf1++ = col;
}
static void lts_aga_ham_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[1];
*buf1++ = col;
}
}
static void lts_aga_n_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
}
}
static void lts_aga_dpf_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ehb_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ham_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
}
}
static void lts_aga_n_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpadds[0];
}
static void lts_aga_n_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
c ^= bxor;
- colf = colors_aga[c];
+ colf = acolors[c];
col = filter_pixel(col, colf);
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_dpf_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_aga_dpf_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- colf = colors_aga[dpval];
+ colf = acolors[dpval];
}
col = filter_pixel(col, colf);
cp += cpadds[0];
}
static void lts_aga_ehb_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_aga_ehb_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
colf = CONVERT_RGB(v);
} else {
- colf = colors_aga[c];
+ colf = acolors[c];
}
col = filter_pixel(col, colf);
cp += cpadds[0];
}
static void lts_aga_ham_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_ham_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpadds[0];
}
static void lts_aga_kehb_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
c ^= bxor;
- colf = colors_aga[c & 31];
+ colf = acolors[c & 31];
col = filter_pixel(col, colf);
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_n_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[1];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[2];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[3];
*buf1++ = col;
}
}
static void lts_aga_dpf_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[1];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[2];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[3];
*buf1++ = col;
}
static void lts_aga_ehb_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[1];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[2];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[3];
*buf1++ = col;
}
static void lts_aga_ham_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[1];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[2];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[3];
*buf1++ = col;
}
}
static void lts_aga_n_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[1];
*buf1++ = col;
}
}
static void lts_aga_dpf_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[1];
*buf1++ = col;
}
static void lts_aga_ehb_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[1];
*buf1++ = col;
}
static void lts_aga_ham_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[1];
*buf1++ = col;
}
}
static void lts_aga_n_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
}
}
static void lts_aga_dpf_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ehb_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ham_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
}
}
static void lts_aga_n_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_dpf_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ehb_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ham_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_n_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpadds[0];
}
static void lts_aga_n_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
c ^= bxor;
- colf = colors_aga[c];
+ colf = acolors[c];
col = filter_pixel(col, colf);
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_dpf_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_aga_dpf_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- colf = colors_aga[dpval];
+ colf = acolors[dpval];
}
col = filter_pixel(col, colf);
cp += cpadds[0];
}
static void lts_aga_ehb_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_aga_ehb_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
colf = CONVERT_RGB(v);
} else {
- colf = colors_aga[c];
+ colf = acolors[c];
}
col = filter_pixel(col, colf);
cp += cpadds[0];
}
static void lts_aga_ham_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_ham_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpadds[0];
}
static void lts_aga_kehb_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
c ^= bxor;
- colf = colors_aga[c & 31];
+ colf = acolors[c & 31];
col = filter_pixel(col, colf);
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_n_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[1];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_dpf_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[1];
*buf1++ = col;
}
static void lts_aga_ehb_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[1];
*buf1++ = col;
}
static void lts_aga_ham_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[1];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_n_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_dpf_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ehb_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ham_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_n_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpadds[0];
}
static void lts_aga_n_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
c ^= bxor;
- colf = colors_aga[c];
+ colf = acolors[c];
col = filter_pixel(col, colf);
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_dpf_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_aga_dpf_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- colf = colors_aga[dpval];
+ colf = acolors[dpval];
}
col = filter_pixel(col, colf);
cp += cpadds[0];
}
static void lts_aga_ehb_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_aga_ehb_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
colf = CONVERT_RGB(v);
} else {
- colf = colors_aga[c];
+ colf = acolors[c];
}
col = filter_pixel(col, colf);
cp += cpadds[0];
}
static void lts_aga_ham_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_ham_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpadds[0];
}
static void lts_aga_kehb_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
c ^= bxor;
- colf = colors_aga[c & 31];
+ colf = acolors[c & 31];
col = filter_pixel(col, colf);
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_n_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[1];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[2];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[3];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_dpf_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[1];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[2];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[3];
*buf1++ = col;
}
static void lts_aga_ehb_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[1];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[2];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[3];
*buf1++ = col;
}
static void lts_aga_ham_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[1];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[2];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[3];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_n_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[1];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_dpf_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[1];
*buf1++ = col;
}
static void lts_aga_ehb_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[1];
*buf1++ = col;
}
static void lts_aga_ham_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[1];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_n_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_dpf_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ehb_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ham_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
static void lts_aga_n_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_aga_dpf_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ehb_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ham_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_aga_n_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpadds[0];
}
static void lts_aga_n_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
c ^= bxor;
- colf = colors_aga[c];
+ colf = acolors[c];
col = filter_pixel(col, colf);
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_dpf_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_aga_dpf_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- colf = colors_aga[dpval];
+ colf = acolors[dpval];
}
col = filter_pixel(col, colf);
cp += cpadds[0];
}
static void lts_aga_ehb_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_aga_ehb_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
colf = CONVERT_RGB(v);
} else {
- colf = colors_aga[c];
+ colf = acolors[c];
}
col = filter_pixel(col, colf);
cp += cpadds[0];
}
static void lts_aga_ham_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_ham_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpadds[0];
}
static void lts_aga_kehb_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
c ^= bxor;
- colf = colors_aga[c & 31];
+ colf = acolors[c & 31];
col = filter_pixel(col, colf);
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_n_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[1];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_aga_dpf_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[1];
*buf1++ = col;
}
static void lts_aga_ehb_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[1];
*buf1++ = col;
}
static void lts_aga_ham_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[1];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_aga_n_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_aga_dpf_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ehb_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ham_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_aga_n_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpadds[0];
}
static void lts_aga_n_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
c ^= bxor;
- colf = colors_aga[c];
+ colf = acolors[c];
col = filter_pixel(col, colf);
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_dpf_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_aga_dpf_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- colf = colors_aga[dpval];
+ colf = acolors[dpval];
}
col = filter_pixel(col, colf);
cp += cpadds[0];
}
static void lts_aga_ehb_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_aga_ehb_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
colf = CONVERT_RGB(v);
} else {
- colf = colors_aga[c];
+ colf = acolors[c];
}
col = filter_pixel(col, colf);
cp += cpadds[0];
}
static void lts_aga_ham_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_ham_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpadds[0];
}
static void lts_aga_kehb_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
c ^= bxor;
- colf = colors_aga[c & 31];
+ colf = acolors[c & 31];
col = filter_pixel(col, colf);
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_n_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[1];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[2];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[3];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_aga_dpf_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[1];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[2];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[3];
*buf1++ = col;
}
static void lts_aga_ehb_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[1];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[2];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[3];
*buf1++ = col;
}
static void lts_aga_ham_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[1];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[2];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[3];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_aga_n_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[1];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_aga_dpf_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[1];
*buf1++ = col;
}
static void lts_aga_ehb_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[1];
*buf1++ = col;
}
static void lts_aga_ham_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[1];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_aga_n_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_aga_dpf_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ehb_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ham_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_aga_n_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_dpf_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ehb_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ham_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_n_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpadds[0];
}
static void lts_aga_n_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
c ^= bxor;
- colf = colors_aga[c];
+ colf = acolors[c];
col = filter_pixel(col, colf);
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_dpf_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_aga_dpf_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- colf = colors_aga[dpval];
+ colf = acolors[dpval];
}
col = filter_pixel(col, colf);
cp += cpadds[0];
}
static void lts_aga_ehb_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_aga_ehb_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
colf = CONVERT_RGB(v);
} else {
- colf = colors_aga[c];
+ colf = acolors[c];
}
col = filter_pixel(col, colf);
cp += cpadds[0];
}
static void lts_aga_ham_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_ham_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpadds[0];
}
static void lts_aga_kehb_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
c ^= bxor;
- colf = colors_aga[c & 31];
+ colf = acolors[c & 31];
col = filter_pixel(col, colf);
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_n_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[1];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_dpf_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[1];
*buf1++ = col;
}
static void lts_aga_ehb_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[1];
*buf1++ = col;
}
static void lts_aga_ham_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[1];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_n_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_dpf_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ehb_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ham_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_n_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpadds[0];
}
static void lts_aga_n_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
c ^= bxor;
- colf = colors_aga[c];
+ colf = acolors[c];
col = filter_pixel(col, colf);
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_dpf_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_aga_dpf_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- colf = colors_aga[dpval];
+ colf = acolors[dpval];
}
col = filter_pixel(col, colf);
cp += cpadds[0];
}
static void lts_aga_ehb_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_aga_ehb_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
colf = CONVERT_RGB(v);
} else {
- colf = colors_aga[c];
+ colf = acolors[c];
}
col = filter_pixel(col, colf);
cp += cpadds[0];
}
static void lts_aga_ham_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_ham_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpadds[0];
}
static void lts_aga_kehb_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
c ^= bxor;
- colf = colors_aga[c & 31];
+ colf = acolors[c & 31];
col = filter_pixel(col, colf);
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_n_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[1];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[2];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[3];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_dpf_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[1];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[2];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[3];
*buf1++ = col;
}
static void lts_aga_ehb_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[1];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[2];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[3];
*buf1++ = col;
}
static void lts_aga_ham_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[1];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[2];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[3];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_n_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[1];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_dpf_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[1];
*buf1++ = col;
}
static void lts_aga_ehb_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[1];
*buf1++ = col;
}
static void lts_aga_ham_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[1];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_n_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c];
+ col = acolors[c];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
}
static void lts_aga_dpf_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
dpval += dblpfofs[bpldualpf2of];
}
dpval ^= bxor;
- col = colors_aga[dpval];
+ col = acolors[dpval];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ehb_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u32 v = (colors_aga[c & 31] >> 1) & 0x7f7f7f;
col = CONVERT_RGB(v);
} else {
- col = colors_aga[c];
+ col = acolors[c];
}
cp += cpadds[0];
*buf1++ = col;
}
static void lts_aga_ham_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
}
static void lts_aga_kehb_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u32 *colors_aga = (uae_u32*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
c = *cp;
clxdat |= bplcoltable[c];
c ^= bxor;
- col = colors_aga[c & 31];
+ col = acolors[c & 31];
cp += cpadds[0];
*buf1++ = col;
*buf2++ = col;
static void lts_ecs_n_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
}
}
static void lts_ecs_dpf_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_kehb_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
}
}
static void lts_ecs_n_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpaddv;
}
static void lts_ecs_n_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
- colf = xcolors[colors_ocs[c]];
+ colf = acolors[c];
col = filter_pixel(col, colf);
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_dpf_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_ecs_dpf_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
{
uae_u8 dpval = dpf_lookup[c];
- colf = xcolors[colors_ocs[dpval]];
+ colf = acolors[dpval];
}
col = filter_pixel(col, colf);
cp += cpaddv;
}
static void lts_ecs_ehb_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ehb_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
uae_u32 colf;
c &= bplehb_mask;
if (c <= 31) {
- colf = xcolors[colors_ocs[c]];
+ colf = acolors[c];
} else {
colf = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_ham_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_kehb_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpaddv;
}
static void lts_ecs_kehb_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
- colf = xcolors[colors_ocs[c & 31]];
+ colf = acolors[c & 31];
col = filter_pixel(col, colf);
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_n_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
}
}
static void lts_ecs_dpf_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_kehb_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
}
}
static void lts_ecs_n_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
}
}
static void lts_ecs_dpf_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_kehb_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
}
}
static void lts_ecs_n_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_n_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_dpf_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_dpf_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_ehb_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_ehb_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_ham_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_ham_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_kehb_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_kehb_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_n_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
}
}
static void lts_ecs_dpf_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_kehb_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
}
}
static void lts_ecs_n_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
}
}
static void lts_ecs_dpf_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_kehb_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
}
}
static void lts_ecs_n_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_dpf_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_ehb_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_ham_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_kehb_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_n_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_dpf_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_kehb_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_n_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpaddv;
}
static void lts_ecs_n_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
- colf = xcolors[colors_ocs[c]];
+ colf = acolors[c];
col = filter_pixel(col, colf);
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_dpf_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_ecs_dpf_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
{
uae_u8 dpval = dpf_lookup[c];
- colf = xcolors[colors_ocs[dpval]];
+ colf = acolors[dpval];
}
col = filter_pixel(col, colf);
cp += cpaddv;
}
static void lts_ecs_ehb_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ehb_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
uae_u32 colf;
c &= bplehb_mask;
if (c <= 31) {
- colf = xcolors[colors_ocs[c]];
+ colf = acolors[c];
} else {
colf = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_ham_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_kehb_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpaddv;
}
static void lts_ecs_kehb_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
- colf = xcolors[colors_ocs[c & 31]];
+ colf = acolors[c & 31];
col = filter_pixel(col, colf);
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_n_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_dpf_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
*buf2++ = col;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_kehb_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_n_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_dpf_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_kehb_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_n_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_n_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_dpf_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_dpf_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_ehb_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_ehb_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_ham_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_ham_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_kehb_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_kehb_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_n_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_dpf_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
*buf2++ = col;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
*buf2++ = col;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
*buf2++ = col;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_kehb_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_n_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_dpf_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
*buf2++ = col;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_kehb_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
*buf2++ = col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_n_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_dpf_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_ehb_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_ham_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
}
static void lts_ecs_kehb_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
int end = draw_end;
static void lts_ecs_n_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_ecs_dpf_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_kehb_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_ecs_n_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpaddv;
}
static void lts_ecs_n_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
- colf = xcolors[colors_ocs[c]];
+ colf = acolors[c];
col = filter_pixel(col, colf);
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_dpf_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_ecs_dpf_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
{
uae_u8 dpval = dpf_lookup[c];
- colf = xcolors[colors_ocs[dpval]];
+ colf = acolors[dpval];
}
col = filter_pixel(col, colf);
cp += cpaddv;
}
static void lts_ecs_ehb_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ehb_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
uae_u32 colf;
c &= bplehb_mask;
if (c <= 31) {
- colf = xcolors[colors_ocs[c]];
+ colf = acolors[c];
} else {
colf = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_ham_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_kehb_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpaddv;
}
static void lts_ecs_kehb_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
- colf = xcolors[colors_ocs[c & 31]];
+ colf = acolors[c & 31];
col = filter_pixel(col, colf);
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_n_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_ecs_dpf_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_kehb_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_ecs_n_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_ecs_dpf_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_kehb_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_ecs_n_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_n_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_dpf_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_dpf_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_ehb_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_ehb_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_ham_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_ham_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_kehb_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_kehb_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_n_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_ecs_dpf_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_kehb_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_ecs_n_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_ecs_dpf_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_kehb_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
gpix = get_genlock_transparency_fast(c);
}
static void lts_ecs_n_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_dpf_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_ehb_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_ham_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_kehb_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_n_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_dpf_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_kehb_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_n_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpaddv;
}
static void lts_ecs_n_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
- colf = xcolors[colors_ocs[c]];
+ colf = acolors[c];
col = filter_pixel(col, colf);
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_dpf_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
}
static void lts_ecs_dpf_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
{
uae_u8 dpval = dpf_lookup[c];
- colf = xcolors[colors_ocs[dpval]];
+ colf = acolors[dpval];
}
col = filter_pixel(col, colf);
cp += cpaddv;
}
static void lts_ecs_ehb_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ehb_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
uae_u32 colf;
c &= bplehb_mask;
if (c <= 31) {
- colf = xcolors[colors_ocs[c]];
+ colf = acolors[c];
} else {
colf = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_ham_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_kehb_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
cp += cpaddv;
}
static void lts_ecs_kehb_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
c = cp[1];
clxdat |= bplcoltable[c];
uae_u32 colf;
- colf = xcolors[colors_ocs[c & 31]];
+ colf = acolors[c & 31];
col = filter_pixel(col, colf);
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_n_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
*buf2++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_dpf_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
*buf2++ = col;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_kehb_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
*buf2++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_n_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_dpf_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_kehb_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_n_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_n_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_dpf_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_dpf_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_ehb_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_ehb_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_ham_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_ham_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_kehb_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_kehb_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_n_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
*buf2++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
*buf2++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
*buf2++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_dpf_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
*buf2++ = col;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
*buf2++ = col;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
*buf2++ = col;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_kehb_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
*buf2++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
*buf2++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
*buf2++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_n_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
*buf1++ = col;
*buf2++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_dpf_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
*buf1++ = col;
*buf2++ = col;
clxdat |= bplcoltable[c];
{
uae_u8 dpval = dpf_lookup[c];
- col = xcolors[colors_ocs[dpval]];
+ col = acolors[dpval];
}
cp += cpaddv;
*buf1++ = col;
}
static void lts_ecs_ehb_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
clxdat |= bplcoltable[c];
c &= bplehb_mask;
if (c <= 31) {
- col = xcolors[colors_ocs[c]];
+ col = acolors[c];
} else {
col = xcolors[(colors_ocs[c - 32] >> 1) & 0x777];
}
}
static void lts_ecs_ham_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_kehb_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
uae_u32 col;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
*buf1++ = col;
*buf2++ = col;
gpix = get_genlock_transparency_fast(c);
*gbuf++ = gpix;
c = *cp;
clxdat |= bplcoltable[c];
- col = xcolors[colors_ocs[c & 31]];
+ col = acolors[c & 31];
cp += cpaddv;
*buf1++ = col;
*buf2++ = col;
}
static void lts_ecs_n_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_dpf_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_ehb_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_ham_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
}
static void lts_ecs_kehb_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
{
- uae_u16 *colors_ocs = (uae_u16*)ls->linecolorstate;
+ uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
+ uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
int bufaddv = 1 << bufadd;
int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);