src/mess/drivers/vboy.c
| r15931 | r15932 | |
| 660 | 660 | static void put_char(vboy_state *state, bitmap_ind16 &bitmap, int x, int y, UINT16 ch, bool flipx, bool flipy, bool trans, UINT8 pal) |
| 661 | 661 | { |
| 662 | 662 | UINT16 data, code = ch; |
| 663 | | UINT8 yi, xi, dat, col; |
| 663 | UINT8 yi, xi, dat; |
| 664 | 664 | |
| 665 | 665 | for (yi = 0; yi < 8; yi++) |
| 666 | 666 | { |
| r15931 | r15932 | |
| 678 | 678 | else |
| 679 | 679 | dat = ((data >> ((7-xi) << 1)) & 0x03); |
| 680 | 680 | |
| 681 | | col = (pal >> (dat*2)) & 3; |
| 681 | //col = (pal >> (dat*2)) & 3; // TODO: check what this is for! |
| 682 | 682 | |
| 683 | 683 | res_x = x + xi; |
| 684 | 684 | res_y = y + yi; |
| 685 | 685 | |
| 686 | | // if(res_x > (384*2) || res_y > 224 || res_x < (0) || res_y < 0) |
| 687 | | // continue; |
| 686 | //if(res_x > (384) || res_y > 224 || res_x < (0) || res_y < 0) |
| 687 | // continue; |
| 688 | 688 | |
| 689 | 689 | if (!trans || (trans && dat)) |
| 690 | | bitmap.pix16((res_y), (res_x)) = col; |
| 690 | bitmap.pix16((res_y), (res_x)) = state->machine().pens[dat]; |
| 691 | 691 | } |
| 692 | 692 | } |
| 693 | 693 | } |