| Previous | 15994 Revisions | Next |
| r1968 Wednesday 12th March, 2008 at 18:27:35 UTC by Wilbert Pol |
|---|
| Removed mslegacy.c dependency from mess/video |
| [src/mess/video] | avigo.c channelf.c dai.c galaxy.c i82720.c lviv.c mekd2.c pc_vga.c pocketc.c |
| r1967 | r1968 | |
|---|---|---|
| 15 | 15 | #include "driver.h" |
| 16 | 16 | #include "i82720.h" |
| 17 | 17 | #include "i82720cm.h" |
| 18 | #include "mslegacy.h" | |
| 19 | 18 | #include <math.h> |
| 20 | 19 | |
| 21 | 20 | /*-------------------------------------------------------------------------*/ |
| r1967 | r1968 | |
| 1390 | 1389 | |
| 1391 | 1390 | PALETTE_INIT( compis_gdc ) |
| 1392 | 1391 | { |
| 1393 | palette_set_colors_rgb(machine, 0, COMPIS_palette, COMPIS_PALETTE_SIZE); | |
| 1392 | int i; | |
| 1393 | ||
| 1394 | for ( i = 0; i < COMPIS_PALETTE_SIZE; i++ ) { | |
| 1395 | palette_set_color_rgb(machine, i, COMPIS_palette[i*3], COMPIS_palette[i*3+1], COMPIS_palette[i*3+2]); | |
| 1396 | } | |
| 1394 | 1397 | } |
| 1395 | 1398 | |
| 1396 | 1399 | static compis_gdc_interface sIntf; |
| r1967 | r1968 | |
|---|---|---|
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | 16 | #include "includes/dai.h" |
| 17 | #include "mslegacy.h" | |
| 18 | 17 | |
| 19 | 18 | #define DEBUG_DAI_VIDEO 0 |
| 20 | 19 | |
| r1967 | r1968 | |
| 44 | 43 | |
| 45 | 44 | PALETTE_INIT( dai ) |
| 46 | 45 | { |
| 47 | palette_set_colors_rgb(machine, 0, dai_palette, sizeof(dai_palette) / 3); | |
| 46 | int i; | |
| 47 | ||
| 48 | for ( i = 0; i < sizeof(dai_palette) / 3; i++ ) { | |
| 49 | palette_set_color_rgb(machine, i, dai_palette[i*3], dai_palette[i*3+1], dai_palette[i*3+2]); | |
| 50 | } | |
| 48 | 51 | } |
| 49 | 52 | |
| 50 | 53 |
| r1967 | r1968 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "mslegacy.h" | |
| 3 | 2 | #include "includes/pocketc.h" |
| 4 | 3 | |
| 5 | 4 | /* PC126x |
| r1967 | r1968 | |
| 32 | 31 | |
| 33 | 32 | PALETTE_INIT( pocketc ) |
| 34 | 33 | { |
| 35 | palette_set_colors_rgb(machine, 0, pocketc_palette, sizeof(pocketc_palette) / 3); | |
| 34 | int i; | |
| 35 | ||
| 36 | for ( i = 0; i < sizeof(pocketc_palette) / 3; i++ ) { | |
| 37 | palette_set_color_rgb(machine, i, pocketc_palette[i*3], pocketc_palette[i*3+1], pocketc_palette[i*3+2]); | |
| 38 | } | |
| 36 | 39 | } |
| 37 | 40 | |
| 38 | 41 |
| r1967 | r1968 | |
|---|---|---|
| 36 | 36 | #include "includes/crtc6845.h" |
| 37 | 37 | #include "memconv.h" |
| 38 | 38 | |
| 39 | #include "mslegacy.h" | |
| 40 | ||
| 41 | 39 | /*************************************************************************** |
| 42 | 40 | |
| 43 | 41 | Static declarations |
| r1967 | r1968 | |
| 183 | 181 | |
| 184 | 182 | static PALETTE_INIT( ega ) |
| 185 | 183 | { |
| 186 | palette_set_colors_rgb(machine, 0, ega_palette, sizeof(ega_palette) / 3); | |
| 184 | int i; | |
| 185 | ||
| 186 | for ( i = 0; i < sizeof(ega_palette) / 3; i++ ) { | |
| 187 | palette_set_color_rgb(machine, i, ega_palette[i*3], ega_palette[i*3+1], ega_palette[i*3+2]); | |
| 188 | } | |
| 187 | 189 | } |
| 188 | 190 | |
| 189 | 191 | static PALETTE_INIT( vga ) |
| r1967 | r1968 | |
|---|---|---|
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | 12 | #include "includes/lviv.h" |
| 13 | #include "mslegacy.h" | |
| 14 | 13 | |
| 15 | 14 | const unsigned char lviv_palette[8*3] = |
| 16 | 15 | { |
| r1967 | r1968 | |
| 31 | 30 | |
| 32 | 31 | PALETTE_INIT( lviv ) |
| 33 | 32 | { |
| 34 | palette_set_colors_rgb(machine, 0, lviv_palette, sizeof(lviv_palette) / 3); | |
| 33 | int i; | |
| 34 | ||
| 35 | for ( i = 0; i < sizeof(lviv_palette) / 3; i++ ) { | |
| 36 | palette_set_color_rgb(machine, i, lviv_palette[i*3], lviv_palette[i*3+1], lviv_palette[i*3+2]); | |
| 37 | } | |
| 35 | 38 | } |
| 36 | 39 | |
| 37 | 40 |
| r1967 | r1968 | |
|---|---|---|
| 9 | 9 | ******************************************************************************/ |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | #include "mslegacy.h" | |
| 13 | 12 | |
| 14 | ||
| 15 | 13 | PALETTE_INIT( mekd2 ) |
| 16 | 14 | { |
| 17 | 15 | int i; |
| r1967 | r1968 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | 2 | #include "includes/channelf.h" |
| 3 | #include "mslegacy.h" | |
| 4 | 3 | |
| 5 | 4 | UINT8 channelf_val_reg = 0; |
| 6 | 5 | UINT8 channelf_row_reg = 0; |
| r1967 | r1968 | |
| 36 | 35 | /* Initialise the palette */ |
| 37 | 36 | PALETTE_INIT( channelf ) |
| 38 | 37 | { |
| 39 | palette_set_colors_rgb(machine, 0, channelf_palette, sizeof(channelf_palette) / 3); | |
| 38 | int i; | |
| 39 | ||
| 40 | for ( i = 0; i < sizeof(channelf_palette) / 3; i++ ) { | |
| 41 | palette_set_color_rgb(machine, i, channelf_palette[i*3], channelf_palette[i*3+1], channelf_palette[i*3+2]); | |
| 42 | } | |
| 40 | 43 | } |
| 41 | 44 | |
| 42 | 45 | VIDEO_START( channelf ) |
| r1967 | r1968 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | 10 | #include "includes/avigo.h" |
| 11 | #include "mslegacy.h" | |
| 12 | 11 | |
| 13 | 12 | /*************************************************************************** |
| 14 | 13 | Start the video hardware emulation. |
| r1967 | r1968 | |
|---|---|---|
| 11 | 11 | #include "driver.h" |
| 12 | 12 | #include "includes/galaxy.h" |
| 13 | 13 | #include "cpu/z80/z80.h" |
| 14 | #include "mslegacy.h" | |
| 15 | 14 | |
| 16 | 15 | static int horizontal_pos = 0x0b; |
| 17 | 16 | |
| r1967 | r1968 | |
| 36 | 35 | |
| 37 | 36 | PALETTE_INIT( galaxy ) |
| 38 | 37 | { |
| 39 | palette_set_colors_rgb(machine, 0, galaxy_palette, sizeof(galaxy_palette) / 3); | |
| 38 | int i; | |
| 39 | ||
| 40 | for ( i = 0; i < sizeof(galaxy_palette) / 3; i++ ) { | |
| 41 | palette_set_color_rgb(machine, i, galaxy_palette[i*3], galaxy_palette[i*3+1], galaxy_palette[i*3+2]); | |
| 42 | } | |
| 40 | 43 | } |
| 41 | 44 | |
| 42 | 45 | VIDEO_START( galaxy ) |
| Previous | 15994 Revisions | Next |