src/mess/video/odyssey2.c
| r1815 | r1816 | |
| 359 | 359 | /* Regular foreground objects */ |
| 360 | 360 | for ( i = 0; i < ARRAY_LENGTH( o2_vdc.s.foreground ); i++ ) { |
| 361 | 361 | int y = o2_vdc.s.foreground[i].y; |
| 362 | | int height = 7; |
| 362 | int height = 8; |
| 363 | 363 | |
| 364 | 364 | if ( y <= ( vpos - start_vpos ) && ( vpos - start_vpos ) < y + height * 2 ) { |
| 365 | 365 | UINT16 color = machine->pens[ 16 + ( ( o2_vdc.s.foreground[i].color & 0x0E ) >> 1 ) ]; |
| 366 | | int offset = ( o2_vdc.s.foreground[i].ptr | ( ( o2_vdc.s.foreground[i].color & 0x01 ) << 8 ) ) + ( ( vpos - start_vpos ) >> 1 ); |
| 366 | int offset = ( o2_vdc.s.foreground[i].ptr | ( ( o2_vdc.s.foreground[i].color & 0x01 ) << 8 ) ) + ( y >> 1 ) + ( ( vpos - start_vpos - y ) >> 1 ); |
| 367 | 367 | UINT8 chr = ((char*)o2_shape)[ offset & 0x1FF ]; |
| 368 | 368 | int x = o2_vdc.s.foreground[i].x; |
| 369 | 369 | UINT8 m; |
| r1815 | r1816 | |
| 390 | 390 | /* Quad objects */ |
| 391 | 391 | for ( i = 0; i < ARRAY_LENGTH( o2_vdc.s.quad ); i++ ) { |
| 392 | 392 | int y = o2_vdc.s.quad[i].single[0].y; |
| 393 | | int height = 7; |
| 393 | int height = 8; |
| 394 | 394 | |
| 395 | 395 | if ( y <= ( vpos - start_vpos ) && ( vpos - start_vpos ) < y + height * 2 ) { |
| 396 | 396 | int x = o2_vdc.s.quad[i].single[0].x; |
| r1815 | r1816 | |
| 398 | 398 | |
| 399 | 399 | for ( j = 0; j < ARRAY_LENGTH( o2_vdc.s.quad[0].single ); j++, x += 8 ) { |
| 400 | 400 | UINT16 color = machine->pens[ 16 + ( ( o2_vdc.s.quad[i].single[j].color & 0x0E ) >> 1 ) ]; |
| 401 | | int offset = ( o2_vdc.s.quad[i].single[j].ptr | ( ( o2_vdc.s.quad[i].single[j].color & 0x01 ) << 8 ) ) + ( ( vpos - start_vpos ) >> 1 ); |
| 401 | int offset = ( o2_vdc.s.quad[i].single[j].ptr | ( ( o2_vdc.s.quad[i].single[j].color & 0x01 ) << 8 ) ) + ( y >> 1 ) + ( ( vpos - start_vpos - y ) >> 1 ); |
| 402 | 402 | UINT8 chr = ((char*)o2_shape)[ offset & 0x1FF ]; |
| 403 | 403 | UINT8 m; |
| 404 | 404 | |