src/mess/video/smsvdp.c
| r13713 | r13714 | |
| 405 | 405 | } |
| 406 | 406 | |
| 407 | 407 | |
| 408 | | void sega315_5378_device::set_gg_sms_mode( bool sms_mode ) |
| 408 | void sega315_5378_device::set_sega315_5124_compatibility_mode( bool sega315_5124_compatibility_mode ) |
| 409 | 409 | { |
| 410 | | m_gg_sms_mode = sms_mode; |
| 411 | | m_cram_mask = (!m_gg_sms_mode) ? (SEGA315_5378_CRAM_SIZE - 1) : (SEGA315_5124_CRAM_SIZE - 1); |
| 412 | | m_draw_time = m_gg_sms_mode ? DRAW_TIME_SMS : DRAW_TIME_GG; |
| 410 | m_sega315_5124_compatibility_mode = sega315_5124_compatibility_mode; |
| 411 | m_cram_mask = (!m_sega315_5124_compatibility_mode) ? (SEGA315_5378_CRAM_SIZE - 1) : (SEGA315_5124_CRAM_SIZE - 1); |
| 412 | m_draw_time = m_sega315_5124_compatibility_mode ? DRAW_TIME_SMS : DRAW_TIME_GG; |
| 413 | 413 | } |
| 414 | 414 | |
| 415 | 415 | |
| r13713 | r13714 | |
| 1511 | 1511 | } |
| 1512 | 1512 | } |
| 1513 | 1513 | |
| 1514 | | if (m_gg_sms_mode) |
| 1514 | if (m_sega315_5124_compatibility_mode) |
| 1515 | 1515 | { |
| 1516 | 1516 | int *combineline_buffer = m_line_buffer + ((line & 0x03) + 1) * 256; |
| 1517 | 1517 | int plot_x = 48; |
| r13713 | r13714 | |
| 1654 | 1654 | } |
| 1655 | 1655 | m_cram_dirty = 0; |
| 1656 | 1656 | |
| 1657 | | if (m_gg_sms_mode) |
| 1657 | if (m_sega315_5124_compatibility_mode) |
| 1658 | 1658 | { |
| 1659 | 1659 | for (i = 0; i < 32; i++) |
| 1660 | 1660 | { |
| r13713 | r13714 | |
| 1734 | 1734 | save_item(NAME(m_cram_dirty)); |
| 1735 | 1735 | save_item(NAME(m_pending)); |
| 1736 | 1736 | save_item(NAME(m_buffer)); |
| 1737 | | save_item(NAME(m_gg_sms_mode)); |
| 1737 | save_item(NAME(m_sega315_5124_compatibility_mode)); |
| 1738 | 1738 | save_item(NAME(m_irq_state)); |
| 1739 | 1739 | save_item(NAME(m_vdp_mode)); |
| 1740 | 1740 | save_item(NAME(m_y_pixels)); |
| r13713 | r13714 | |
| 1765 | 1765 | m_reg9copy = 0; |
| 1766 | 1766 | m_addrmode = 0; |
| 1767 | 1767 | m_addr = 0; |
| 1768 | | m_gg_sms_mode = false; |
| 1768 | m_sega315_5124_compatibility_mode = false; |
| 1769 | 1769 | m_cram_mask = m_cram_size - 1; |
| 1770 | 1770 | m_cram_dirty = 1; |
| 1771 | 1771 | m_pending = 0; |
src/mess/video/smsvdp.h
| r13713 | r13714 | |
| 82 | 82 | void update_video( bitmap_t *bitmap, const rectangle *cliprect ); |
| 83 | 83 | |
| 84 | 84 | int check_brightness( int x, int y ); |
| 85 | | virtual void set_gg_sms_mode( bool sms_mode ) { }; |
| 85 | virtual void set_sega315_5124_compatibility_mode( bool sega315_5124_compatibility_mode ) { }; |
| 86 | 86 | |
| 87 | 87 | protected: |
| 88 | 88 | virtual void set_display_settings(); |
| r13713 | r13714 | |
| 114 | 114 | int m_cram_dirty; /* Have there been any changes to the CRAM area */ |
| 115 | 115 | int m_pending; |
| 116 | 116 | UINT8 m_buffer; |
| 117 | | bool m_gg_sms_mode; /* Shrunk SMS screen on GG lcd mode flag */ |
| 117 | bool m_sega315_5124_compatibility_mode; /* Shrunk SMS screen on GG lcd mode flag */ |
| 118 | 118 | int m_irq_state; /* The status of the IRQ line of the VDP */ |
| 119 | 119 | int m_vdp_mode; /* Current mode of the VDP: 0,1,2,3,4 */ |
| 120 | 120 | int m_y_pixels; /* 192, 224, 240 */ |
| r13713 | r13714 | |
| 175 | 175 | |
| 176 | 176 | virtual void device_reset(); |
| 177 | 177 | |
| 178 | | virtual void set_gg_sms_mode( bool sms_mode ); |
| 178 | virtual void set_sega315_5124_compatibility_mode( bool sega315_5124_compatibility_mode ); |
| 179 | 179 | |
| 180 | 180 | protected: |
| 181 | 181 | virtual void set_display_settings(); |