/dports/games/libretro-mame2003/mame2003-libretro-4358db4/src/vidhrdw/ |
H A D | xevious_vidhrdw.c | 41 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in PALETTE_INIT() macro 81 for (i = 0;i < TOTAL_COLORS(1);i++) in PALETTE_INIT() 83 COLOR(1,i) = (color_prom[0] & 0x0f) | ((color_prom[TOTAL_COLORS(1)] & 0x0f) << 4); in PALETTE_INIT() 87 color_prom += TOTAL_COLORS(1); in PALETTE_INIT() 90 for (i = 0;i < TOTAL_COLORS(2);i++) in PALETTE_INIT() 92 int c = (color_prom[0] & 0x0f) | ((color_prom[TOTAL_COLORS(2)] & 0x0f) << 4); in PALETTE_INIT() 99 color_prom += TOTAL_COLORS(2); in PALETTE_INIT() 102 for (i = 0;i < TOTAL_COLORS(0);i++) in PALETTE_INIT() 154 for (i = 0;i < TOTAL_COLORS(1);i++) in PALETTE_INIT() 163 for (i = 0;i < TOTAL_COLORS(2);i++) in PALETTE_INIT() [all …]
|
H A D | pacland_vidhrdw.c | 46 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in PALETTE_INIT() macro 56 for (i = 0;i < TOTAL_COLORS(2)/3;i++) in PALETTE_INIT() 62 if (COLOR(2,i) == 0x7f) COLOR(2,i + 2*TOTAL_COLORS(2)/3) = COLOR(2,i); in PALETTE_INIT() 63 else COLOR(2,i + 2*TOTAL_COLORS(2)/3) = 0xff; in PALETTE_INIT() 70 if (COLOR(2,i) >= 0xf0) COLOR(2,i + TOTAL_COLORS(2)/3) = COLOR(2,i); in PALETTE_INIT() 71 else COLOR(2,i + TOTAL_COLORS(2)/3) = 0xff; in PALETTE_INIT() 75 for (i = 0;i < TOTAL_COLORS(0);i++) in PALETTE_INIT() 83 for (i = 0;i < TOTAL_COLORS(1);i++) in PALETTE_INIT()
|
H A D | shaolins_vidhrdw.c | 35 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in PALETTE_INIT() macro 70 for (i = 0;i < TOTAL_COLORS(0)/8;i++) in PALETTE_INIT() 76 COLOR(0,i + j * TOTAL_COLORS(0)/8) = (*color_prom & 0x0f) + 32 * j + 16; in PALETTE_INIT() 81 for (i = 0;i < TOTAL_COLORS(1)/8;i++) in PALETTE_INIT() 89 if ((*color_prom & 0x0f) == 0) COLOR(1,i + j * TOTAL_COLORS(1)/8) = 0; in PALETTE_INIT() 90 else COLOR(1,i + j * TOTAL_COLORS(1)/8) = (*color_prom & 0x0f) + 32 * j; in PALETTE_INIT()
|
H A D | 1943_vidhrdw.c | 44 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… macro 76 for (i = 0;i < TOTAL_COLORS(0);i++) 81 for (i = 0;i < TOTAL_COLORS(1);i++) 90 color_prom += TOTAL_COLORS(1); 93 for (i = 0;i < TOTAL_COLORS(2);i++) 98 color_prom += TOTAL_COLORS(2); 103 for (i = 0;i < TOTAL_COLORS(3);i++) 108 color_prom += TOTAL_COLORS(3);
|
H A D | stfight_vidhrdw.c | 44 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in PALETTE_INIT() macro 52 for (i = 0;i < TOTAL_COLORS(0);i++) in PALETTE_INIT() 58 color_prom += 256 - TOTAL_COLORS(0); /* rest of the PROM is unused */ in PALETTE_INIT() 61 for (i = 0;i < TOTAL_COLORS(1);i++) in PALETTE_INIT() 69 for (i = 0;i < TOTAL_COLORS(2);i++) in PALETTE_INIT() 77 for (i = 0;i < TOTAL_COLORS(4);i++) in PALETTE_INIT()
|
H A D | terracre_vidhrdw.c | 100 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in PALETTE_INIT() macro 132 for (i = 0;i < TOTAL_COLORS(0);i++) in PALETTE_INIT() 138 for (i = 0;i < TOTAL_COLORS(1);i++) in PALETTE_INIT() 149 for (i = 0;i < TOTAL_COLORS(2)/16;i++) in PALETTE_INIT() 156 COLOR(2,i + j * (TOTAL_COLORS(2)/16)) = 128 + ((j & 0x0c) << 2) + (*color_prom & 0x0f); in PALETTE_INIT() 158 COLOR(2,i + j * (TOTAL_COLORS(2)/16)) = 128 + ((j & 0x03) << 4) + (*color_prom & 0x0f); in PALETTE_INIT()
|
H A D | gsword_vidhrdw.c | 30 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in PALETTE_INIT() macro 65 for (i = 0;i < TOTAL_COLORS(0);i++) in PALETTE_INIT() 69 for (i = 0;i < TOTAL_COLORS(1);i++) in PALETTE_INIT() 81 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in PALETTE_INIT() macro 112 for (i = 0;i < TOTAL_COLORS(0);i++) in PALETTE_INIT() 116 for (i = 0;i < TOTAL_COLORS(1);i++) in PALETTE_INIT()
|
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/globalincs/ |
H A D | alphacolors.cpp | 48 color *COLOR_LIST[TOTAL_COLORS] = { 74 const char *COLOR_NAMES[TOTAL_COLORS] = { 100 const int rgba_defaults[TOTAL_COLORS][4] = { 250 for (i = 0; i < TOTAL_COLORS; i++) { in alpha_colors_init() 295 const char* color_names[TOTAL_COLORS] = { in parse_colors() 322 for (i = 0; i < TOTAL_COLORS; i++) { in parse_colors() 469 for (j = 0; j < TOTAL_COLORS; j++) { in parse_everything_else() 474 if (j == TOTAL_COLORS) { in parse_everything_else() 478 …Assertion(j >= 0 && j < TOTAL_COLORS, "Attempting to copy nonexistant color (%d out of 0-%d)!\n", … in parse_everything_else() 551 for (j = 0; j < TOTAL_COLORS; j++) { in parse_everything_else() [all …]
|
/dports/games/libretro-mame2003_plus/mame2003-plus-libretro-17e9889/src/vidhrdw/ |
H A D | xevious_vidhrdw.c | 97 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in PALETTE_INIT() macro 137 for (i = 0;i < TOTAL_COLORS(1);i++) in PALETTE_INIT() 139 COLOR(1,i) = (color_prom[0] & 0x0f) | ((color_prom[TOTAL_COLORS(1)] & 0x0f) << 4); in PALETTE_INIT() 143 color_prom += TOTAL_COLORS(1); in PALETTE_INIT() 146 for (i = 0;i < TOTAL_COLORS(2);i++) in PALETTE_INIT() 148 int c = (color_prom[0] & 0x0f) | ((color_prom[TOTAL_COLORS(2)] & 0x0f) << 4); in PALETTE_INIT() 155 color_prom += TOTAL_COLORS(2); in PALETTE_INIT() 158 for (i = 0;i < TOTAL_COLORS(0);i++) in PALETTE_INIT() 210 for (i = 0;i < TOTAL_COLORS(1);i++) in PALETTE_INIT() 219 for (i = 0;i < TOTAL_COLORS(2);i++) in PALETTE_INIT() [all …]
|
H A D | pacland_vidhrdw.c | 46 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in PALETTE_INIT() macro 56 for (i = 0;i < TOTAL_COLORS(2)/3;i++) in PALETTE_INIT() 62 if (COLOR(2,i) == 0x7f) COLOR(2,i + 2*TOTAL_COLORS(2)/3) = COLOR(2,i); in PALETTE_INIT() 63 else COLOR(2,i + 2*TOTAL_COLORS(2)/3) = 0xff; in PALETTE_INIT() 70 if (COLOR(2,i) >= 0xf0) COLOR(2,i + TOTAL_COLORS(2)/3) = COLOR(2,i); in PALETTE_INIT() 71 else COLOR(2,i + TOTAL_COLORS(2)/3) = 0xff; in PALETTE_INIT() 75 for (i = 0;i < TOTAL_COLORS(0);i++) in PALETTE_INIT() 83 for (i = 0;i < TOTAL_COLORS(1);i++) in PALETTE_INIT()
|
H A D | shaolins_vidhrdw.c | 35 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in PALETTE_INIT() macro 70 for (i = 0;i < TOTAL_COLORS(0)/8;i++) in PALETTE_INIT() 76 COLOR(0,i + j * TOTAL_COLORS(0)/8) = (*color_prom & 0x0f) + 32 * j + 16; in PALETTE_INIT() 81 for (i = 0;i < TOTAL_COLORS(1)/8;i++) in PALETTE_INIT() 89 if ((*color_prom & 0x0f) == 0) COLOR(1,i + j * TOTAL_COLORS(1)/8) = 0; in PALETTE_INIT() 90 else COLOR(1,i + j * TOTAL_COLORS(1)/8) = (*color_prom & 0x0f) + 32 * j; in PALETTE_INIT()
|
H A D | 1943_vidhrdw.c | 44 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… macro 76 for (i = 0;i < TOTAL_COLORS(0);i++) 81 for (i = 0;i < TOTAL_COLORS(1);i++) 90 color_prom += TOTAL_COLORS(1); 93 for (i = 0;i < TOTAL_COLORS(2);i++) 98 color_prom += TOTAL_COLORS(2); 103 for (i = 0;i < TOTAL_COLORS(3);i++) 108 color_prom += TOTAL_COLORS(3);
|
H A D | terracre_vidhrdw.c | 100 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in PALETTE_INIT() macro 132 for (i = 0;i < TOTAL_COLORS(0);i++) in PALETTE_INIT() 138 for (i = 0;i < TOTAL_COLORS(1);i++) in PALETTE_INIT() 149 for (i = 0;i < TOTAL_COLORS(2)/16;i++) in PALETTE_INIT() 156 COLOR(2,i + j * (TOTAL_COLORS(2)/16)) = 128 + ((j & 0x0c) << 2) + (*color_prom & 0x0f); in PALETTE_INIT() 158 COLOR(2,i + j * (TOTAL_COLORS(2)/16)) = 128 + ((j & 0x03) << 4) + (*color_prom & 0x0f); in PALETTE_INIT()
|
H A D | stfight_vidhrdw.c | 44 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in PALETTE_INIT() macro 52 for (i = 0;i < TOTAL_COLORS(0);i++) in PALETTE_INIT() 58 color_prom += 256 - TOTAL_COLORS(0); /* rest of the PROM is unused */ in PALETTE_INIT() 61 for (i = 0;i < TOTAL_COLORS(1);i++) in PALETTE_INIT() 69 for (i = 0;i < TOTAL_COLORS(2);i++) in PALETTE_INIT() 77 for (i = 0;i < TOTAL_COLORS(4);i++) in PALETTE_INIT()
|
H A D | gsword_vidhrdw.c | 26 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in PALETTE_INIT() macro 61 for (i = 0;i < TOTAL_COLORS(0);i++) in PALETTE_INIT() 65 for (i = 0;i < TOTAL_COLORS(1);i++) in PALETTE_INIT() 73 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in PALETTE_INIT() macro 103 for (i = 0;i < TOTAL_COLORS(0);i++) in PALETTE_INIT() 107 for (i = 0;i < TOTAL_COLORS(1);i++) in PALETTE_INIT()
|
/dports/games/libretro-mame2000/mame2000-libretro-e364a15/src/vidhrdw/ |
H A D | shaolins.c | 36 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in shaolins_vh_convert_color_prom() macro 70 for (i = 0;i < TOTAL_COLORS(0)/8;i++) in shaolins_vh_convert_color_prom() 76 COLOR(0,i + j * TOTAL_COLORS(0)/8) = (*color_prom & 0x0f) + 32 * j + 16; in shaolins_vh_convert_color_prom() 81 for (i = 0;i < TOTAL_COLORS(1)/8;i++) in shaolins_vh_convert_color_prom() 89 if ((*color_prom & 0x0f) == 0) COLOR(1,i + j * TOTAL_COLORS(1)/8) = 0; in shaolins_vh_convert_color_prom() 90 else COLOR(1,i + j * TOTAL_COLORS(1)/8) = (*color_prom & 0x0f) + 32 * j; in shaolins_vh_convert_color_prom()
|
H A D | xevious.c | 40 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in xevious_vh_convert_color_prom() macro 81 for (i = 0;i < TOTAL_COLORS(1);i++) in xevious_vh_convert_color_prom() 83 COLOR(1,i) = (color_prom[0] & 0x0f) | ((color_prom[TOTAL_COLORS(1)] & 0x0f) << 4); in xevious_vh_convert_color_prom() 87 color_prom += TOTAL_COLORS(1); in xevious_vh_convert_color_prom() 90 for (i = 0;i < TOTAL_COLORS(2);i++) in xevious_vh_convert_color_prom() 92 int c = (color_prom[0] & 0x0f) | ((color_prom[TOTAL_COLORS(2)] & 0x0f) << 4); in xevious_vh_convert_color_prom() 99 color_prom += TOTAL_COLORS(2); in xevious_vh_convert_color_prom() 102 for (i = 0;i < TOTAL_COLORS(0);i++) in xevious_vh_convert_color_prom()
|
H A D | 1943.c | 44 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in c1943_vh_convert_color_prom() macro 76 for (i = 0;i < TOTAL_COLORS(0);i++) in c1943_vh_convert_color_prom() 81 for (i = 0;i < TOTAL_COLORS(1);i++) in c1943_vh_convert_color_prom() 90 color_prom += TOTAL_COLORS(1); in c1943_vh_convert_color_prom() 93 for (i = 0;i < TOTAL_COLORS(2);i++) in c1943_vh_convert_color_prom() 98 color_prom += TOTAL_COLORS(2); in c1943_vh_convert_color_prom() 103 for (i = 0;i < TOTAL_COLORS(3);i++) in c1943_vh_convert_color_prom() 108 color_prom += TOTAL_COLORS(3); in c1943_vh_convert_color_prom()
|
H A D | terracre.c | 30 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in terrac_vh_convert_color_prom() macro 62 for (i = 0;i < TOTAL_COLORS(0);i++) in terrac_vh_convert_color_prom() 68 for (i = 0;i < TOTAL_COLORS(1);i++) in terrac_vh_convert_color_prom() 79 for (i = 0;i < TOTAL_COLORS(2)/16;i++) in terrac_vh_convert_color_prom() 86 COLOR(2,i + j * (TOTAL_COLORS(2)/16)) = 128 + ((j & 0x0c) << 2) + (*color_prom & 0x0f); in terrac_vh_convert_color_prom() 88 COLOR(2,i + j * (TOTAL_COLORS(2)/16)) = 128 + ((j & 0x03) << 4) + (*color_prom & 0x0f); in terrac_vh_convert_color_prom()
|
H A D | cosmic.c | 119 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in panic_vh_convert_color_prom() macro 133 for (i = 0;i < TOTAL_COLORS(0);i++) in panic_vh_convert_color_prom() 154 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in cosmica_vh_convert_color_prom() macro 165 for (i = 0;i < TOTAL_COLORS(0)/2;i++) in cosmica_vh_convert_color_prom() 168 COLOR(0,i+(TOTAL_COLORS(0)/2)) = (*(color_prom++) >> 4) & 0x07; in cosmica_vh_convert_color_prom() 191 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in cosmicg_vh_convert_color_prom() macro 216 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in magspot2_vh_convert_color_prom() macro 232 for (i = 0;i < TOTAL_COLORS(0);i++) in magspot2_vh_convert_color_prom()
|
H A D | stfight.c | 43 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in stfight_vh_convert_color_prom() macro 53 for (i = 0;i < TOTAL_COLORS(0);i++) in stfight_vh_convert_color_prom() 59 color_prom += 256 - TOTAL_COLORS(0); /* rest of the PROM is unused */ in stfight_vh_convert_color_prom() 62 for (i = 0;i < TOTAL_COLORS(1);i++) in stfight_vh_convert_color_prom() 70 for (i = 0;i < TOTAL_COLORS(2);i++) in stfight_vh_convert_color_prom() 78 for (i = 0;i < TOTAL_COLORS(4);i++) in stfight_vh_convert_color_prom()
|
H A D | gunsmoke.c | 41 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in gunsmoke_vh_convert_color_prom() macro 73 for (i = 0;i < TOTAL_COLORS(0);i++) in gunsmoke_vh_convert_color_prom() 78 for (i = 0;i < TOTAL_COLORS(1);i++) in gunsmoke_vh_convert_color_prom() 83 color_prom += TOTAL_COLORS(1); in gunsmoke_vh_convert_color_prom() 86 for (i = 0;i < TOTAL_COLORS(2);i++) in gunsmoke_vh_convert_color_prom() 91 color_prom += TOTAL_COLORS(2); in gunsmoke_vh_convert_color_prom()
|
H A D | mikie.c | 36 …#define TOTAL_COLORS(gfxn) (Machine->gfx[gfxn]->total_colors * Machine->gfx[gfxn]->color_granulari… in mikie_vh_convert_color_prom() macro 70 for (i = 0;i < TOTAL_COLORS(0)/8;i++) in mikie_vh_convert_color_prom() 76 COLOR(0,i + j * TOTAL_COLORS(0)/8) = (*color_prom & 0x0f) + 32 * j + 16; in mikie_vh_convert_color_prom() 81 for (i = 0;i < TOTAL_COLORS(1)/8;i++) in mikie_vh_convert_color_prom() 87 COLOR(1,i + j * TOTAL_COLORS(1)/8) = (*color_prom & 0x0f) + 32 * j; in mikie_vh_convert_color_prom()
|
/dports/emulators/mess/mame-mame0226/src/mame/video/ |
H A D | xevious.cpp | 33 …auto const TOTAL_COLORS = [this] (int gfxn) { return m_gfxdecode->gfx(gfxn)->colors() * m_gfxdecod… in xevious_palette() local 70 for (int i = 0; i < TOTAL_COLORS(1); i++) in xevious_palette() 74 (color_prom[0] & 0x0f) | ((color_prom[TOTAL_COLORS(1)] & 0x0f) << 4)); in xevious_palette() 78 color_prom += TOTAL_COLORS(1); in xevious_palette() 81 for (int i = 0; i < TOTAL_COLORS(2); i++) in xevious_palette() 83 int const c = (color_prom[0] & 0x0f) | ((color_prom[TOTAL_COLORS(2)] & 0x0f) << 4); in xevious_palette() 91 color_prom += TOTAL_COLORS(2); in xevious_palette() 94 for (int i = 0; i < TOTAL_COLORS(0); i++) in xevious_palette()
|
/dports/emulators/mame/mame-mame0226/src/mame/video/ |
H A D | xevious.cpp | 33 …auto const TOTAL_COLORS = [this] (int gfxn) { return m_gfxdecode->gfx(gfxn)->colors() * m_gfxdecod… in xevious_palette() local 70 for (int i = 0; i < TOTAL_COLORS(1); i++) in xevious_palette() 74 (color_prom[0] & 0x0f) | ((color_prom[TOTAL_COLORS(1)] & 0x0f) << 4)); in xevious_palette() 78 color_prom += TOTAL_COLORS(1); in xevious_palette() 81 for (int i = 0; i < TOTAL_COLORS(2); i++) in xevious_palette() 83 int const c = (color_prom[0] & 0x0f) | ((color_prom[TOTAL_COLORS(2)] & 0x0f) << 4); in xevious_palette() 91 color_prom += TOTAL_COLORS(2); in xevious_palette() 94 for (int i = 0; i < TOTAL_COLORS(0); i++) in xevious_palette()
|