trunk/src/emu/rendlay.c
| r18412 | r18413 | |
| 737 | 737 | |
| 738 | 738 | // rect nodes |
| 739 | 739 | else if (strcmp(compnode.name, "rect") == 0) |
| 740 | | { |
| 741 | 740 | m_type = CTYPE_RECT; |
| 742 | | m_foldrect = (strcmp("yes", xml_get_attribute_string_with_subst(machine, compnode, "fold", "no")) == 0); |
| 743 | | } |
| 744 | 741 | |
| 745 | 742 | // disk nodes |
| 746 | 743 | else if (strcmp(compnode.name, "disk") == 0) |
| r18412 | r18413 | |
| 831 | 828 | break; |
| 832 | 829 | |
| 833 | 830 | case CTYPE_REEL: |
| 834 | | |
| 835 | 831 | draw_reel(machine, dest, bounds, state); |
| 836 | 832 | break; |
| 837 | 833 | |
| r18412 | r18413 | |
| 857 | 853 | // iterate over X and Y |
| 858 | 854 | for (UINT32 y = bounds.min_y; y <= bounds.max_y; y++) |
| 859 | 855 | { |
| 860 | | // if folded, find the right edge |
| 861 | | UINT32 max_x = bounds.max_x; |
| 862 | | if (m_foldrect == 1) |
| 863 | | max_x = bounds.min_x + ((float)(y - bounds.min_y) / (float)(bounds.max_y - bounds.min_y)) * (float)(bounds.max_x - bounds.min_x) + 0.5; |
| 864 | | |
| 865 | | for (UINT32 x = bounds.min_x; x <= max_x; x++) |
| 856 | for (UINT32 x = bounds.min_x; x <= bounds.max_x; x++) |
| 866 | 857 | { |
| 867 | 858 | UINT32 finalr = r; |
| 868 | 859 | UINT32 finalg = g; |