src/mess/video/odyssey2.c
| r1868 | r1869 | |
| 168 | 168 | static bitmap_t *tmp_bitmap; |
| 169 | 169 | static int start_vpos; |
| 170 | 170 | static int start_vblank; |
| 171 | static UINT8 lum; /* Output of P1 bit 7 influences the intensity of the background and grid colours */ |
| 171 | 172 | |
| 172 | 173 | static sound_stream *odyssey2_sh_channel; |
| 173 | 174 | |
| r1868 | r1869 | |
| 266 | 267 | o2_vdc.reg[offset] = data; |
| 267 | 268 | } |
| 268 | 269 | |
| 270 | WRITE8_HANDLER ( odyssey2_lum_w ) { |
| 271 | lum = data; |
| 272 | } |
| 273 | |
| 269 | 274 | READ8_HANDLER( odyssey2_t1_r ) |
| 270 | 275 | { |
| 271 | 276 | if ( video_screen_get_vpos( 0 ) > start_vpos && video_screen_get_vpos( 0 ) < start_vblank ) { |
| r1868 | r1869 | |
| 298 | 303 | rect.min_y = rect.max_y = vpos; |
| 299 | 304 | rect.min_x = I824X_START_ACTIVE_SCAN; |
| 300 | 305 | rect.max_x = I824X_END_ACTIVE_SCAN - 1; |
| 301 | | fillbitmap( tmp_bitmap, machine->pens[(o2_vdc.s.color >> 3) & 0x7], &rect ); |
| 306 | fillbitmap( tmp_bitmap, machine->pens[ ( (o2_vdc.s.color >> 3) & 0x7 ) | ( ( lum << 3 ) ^ 0x08 ) ], &rect ); |
| 302 | 307 | |
| 303 | 308 | /* Clear collision map */ |
| 304 | 309 | memset( collision_map, 0, sizeof( collision_map ) ); |
| 305 | 310 | |
| 306 | 311 | /* Display grid if enabled */ |
| 307 | 312 | if ( o2_vdc.s.control & 0x08 ) { |
| 308 | | UINT16 color = machine->pens[ ( o2_vdc.s.color & 7 ) | ( ( o2_vdc.s.color >> 3 ) & 0x08 ) ]; |
| 313 | UINT16 color = machine->pens[ ( o2_vdc.s.color & 7 ) | ( ( ( ( o2_vdc.s.color >> 3 ) & 0x08 ) & ( lum << 3 ) ) ^ 0x08 ) ]; |
| 309 | 314 | int x_grid_offset = 8; |
| 310 | 315 | int y_grid_offset = 24; |
| 311 | 316 | int width = 16; |