Previous 15994 Revisions Next

r2197 Tuesday 1st April, 2008 at 12:45:46 UTC by Robbbert
[TI990_10] Fixed palette, still a black screen, changed to NOT WORKING.
[src/mess/drivers]ti990_10.c
[src/mess/video]911_vdt.c 911_vdt.h

src/mess/video/911_vdt.c
r2196r2197
6464   GFXDECODE_ENTRY( vdt911_chr_region, vdt911_frenchWP_chr_offset, fontlayout_7bit, 0, 4 )
6565GFXDECODE_END
6666
67const unsigned char vdt911_palette[vdt911_palette_size*3] =
67const unsigned char vdt911_colors[] =
6868{
6969   0x00,0x00,0x00,   /* black */
7070   0xC0,0xC0,0xC0,   /* low intensity */
7171   0xFF,0xFF,0xFF   /* high intensity */
7272};
7373
74const unsigned short vdt911_colortable[vdt911_colortable_size] =
74const unsigned short vdt911_palette[] =
7575{
7676   0, 2,   /* high intensity */
7777   0, 1,   /* low intensity */
r2196r2197
130130*/
131131PALETTE_INIT( vdt911 )
132132{
133   int i;
133   UINT8 i, r, g, b;
134134
135   for ( i = 0; i < vdt911_palette_size; i++ ) {
136      palette_set_color_rgb(machine, i, vdt911_palette[i*3], vdt911_palette[i*3+1], vdt911_palette[i*3+2]);
135   machine->colortable = colortable_alloc(machine, 3);
136
137   for ( i = 0; i < 3; i++ )
138   {
139      r = vdt911_colors[i*3]; g = vdt911_colors[i*3+1]; b = vdt911_colors[i*3+2];
140      colortable_palette_set_color(machine->colortable, i, MAKE_RGB(r, g, b));
137141   }
142
143   for(i=0;i<8;i++)
144      colortable_entry_set_value(machine->colortable, i, vdt911_palette[i]);
138145}
139146
140147/*
src/mess/video/911_vdt.h
r2196r2197
2222
2323GFXDECODE_EXTERN( vdt911 );
2424
25extern const unsigned char vdt911_palette[];
26extern const unsigned short vdt911_colortable[];
27enum
28{
29   vdt911_palette_size = 3 /** 3*/,
30   vdt911_colortable_size = 4 * 2
31};
32
33
3425typedef enum { char_960, char_1920 } vdt911_screen_size_t;
3526typedef enum
3627{
src/mess/drivers/ti990_10.c
r2196r2197
211211   MDRV_SCREEN_VISIBLE_AREA(0, 560-1, 0, /*250*/280-1)
212212
213213   MDRV_GFXDECODE(vdt911)
214   MDRV_PALETTE_LENGTH(vdt911_palette_size)
214   MDRV_PALETTE_LENGTH(8)
215215
216216   MDRV_PALETTE_INIT(vdt911)
217217   MDRV_VIDEO_START(ti990_10)
r2196r2197
334334SYSTEM_CONFIG_END
335335
336336/*    YEAR  NAME        PARENT  COMPAT  MACHINE     INPUT       INIT        CONFIG      COMPANY                 FULLNAME */
337COMP( 1975,   ti990_10,   0,      0,      ti990_10,   ti990_10,   ti990_10,   ti990_10,   "Texas Instruments",   "TI Model 990/10 Minicomputer System" , 0)
337COMP( 1975,   ti990_10,   0,      0,      ti990_10,   ti990_10,   ti990_10,   ti990_10,   "Texas Instruments",   "TI Model 990/10 Minicomputer System" , GAME_NOT_WORKING )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team