Previous 15994 Revisions Next

r13714 Sunday 25th December, 2011 at 21:22:33 UTC by Wilbert Pol
smsvdp.c: Some more renaming (nw)
[src/mess/machine]sms.c
[src/mess/video]smsvdp.c smsvdp.h

src/mess/machine/sms.c
r13713r13714
20142014
20152015   if (state->m_cartridge[state->m_current_cartridge].features & CF_GG_SMS_MODE)
20162016   {
2017      state->m_vdp->set_gg_sms_mode(true);
2017      state->m_vdp->set_sega315_5124_compatibility_mode(true);
20182018   }
20192019
20202020   /* Initialize SIO stuff for GG */
src/mess/video/smsvdp.c
r13713r13714
405405}
406406
407407
408void sega315_5378_device::set_gg_sms_mode( bool sms_mode )
408void sega315_5378_device::set_sega315_5124_compatibility_mode( bool sega315_5124_compatibility_mode )
409409{
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;
413413}
414414
415415
r13713r13714
15111511      }
15121512   }
15131513
1514   if (m_gg_sms_mode)
1514   if (m_sega315_5124_compatibility_mode)
15151515   {
15161516      int *combineline_buffer = m_line_buffer + ((line & 0x03) + 1) * 256;
15171517      int plot_x = 48;
r13713r13714
16541654   }
16551655   m_cram_dirty = 0;
16561656
1657   if (m_gg_sms_mode)
1657   if (m_sega315_5124_compatibility_mode)
16581658   {
16591659      for (i = 0; i < 32; i++)
16601660      {
r13713r13714
17341734   save_item(NAME(m_cram_dirty));
17351735   save_item(NAME(m_pending));
17361736   save_item(NAME(m_buffer));
1737   save_item(NAME(m_gg_sms_mode));
1737   save_item(NAME(m_sega315_5124_compatibility_mode));
17381738   save_item(NAME(m_irq_state));
17391739   save_item(NAME(m_vdp_mode));
17401740   save_item(NAME(m_y_pixels));
r13713r13714
17651765   m_reg9copy = 0;
17661766   m_addrmode = 0;
17671767   m_addr = 0;
1768   m_gg_sms_mode = false;
1768   m_sega315_5124_compatibility_mode = false;
17691769   m_cram_mask = m_cram_size - 1;
17701770   m_cram_dirty = 1;
17711771   m_pending = 0;
src/mess/video/smsvdp.h
r13713r13714
8282   void update_video( bitmap_t *bitmap, const rectangle *cliprect );
8383
8484   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 ) { };
8686
8787protected:
8888   virtual void set_display_settings();
r13713r13714
114114   int              m_cram_dirty;               /* Have there been any changes to the CRAM area */
115115   int              m_pending;
116116   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 */
118118   int              m_irq_state;                /* The status of the IRQ line of the VDP */
119119   int              m_vdp_mode;                 /* Current mode of the VDP: 0,1,2,3,4 */
120120   int              m_y_pixels;                 /* 192, 224, 240 */
r13713r13714
175175
176176   virtual void device_reset();
177177
178   virtual void set_gg_sms_mode( bool sms_mode );
178   virtual void set_sega315_5124_compatibility_mode( bool sega315_5124_compatibility_mode );
179179
180180protected:
181181   virtual void set_display_settings();

Previous 15994 Revisions Next


© 1998-2018 The MESS Team