mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
vigilant.c: let's not save an enormous bitmap in each savestate when we can regenerate it (nw)
This commit is contained in:
parent
d2c736443a
commit
62ebd1f859
@ -54,4 +54,5 @@ public:
|
||||
void draw_foreground(bitmap_ind16 &bitmap, const rectangle &cliprect, int priority, int opaque );
|
||||
void draw_background(bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
void draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect);
|
||||
void vigilant_postload();
|
||||
};
|
||||
|
@ -27,10 +27,15 @@ void vigilant_state::video_start()
|
||||
save_item(NAME(m_rear_horiz_scroll_high));
|
||||
save_item(NAME(m_rear_color));
|
||||
save_item(NAME(m_rear_disable));
|
||||
save_item(NAME(m_rear_refresh));
|
||||
save_item(NAME(*m_bg_bitmap));
|
||||
|
||||
m_rear_refresh = 1;
|
||||
machine().save().register_postload(save_prepost_delegate(FUNC(vigilant_state::vigilant_postload), this));
|
||||
}
|
||||
|
||||
void vigilant_state::vigilant_postload()
|
||||
{
|
||||
m_rear_refresh = 1;
|
||||
}
|
||||
|
||||
void vigilant_state::video_reset()
|
||||
{
|
||||
@ -40,7 +45,6 @@ void vigilant_state::video_reset()
|
||||
m_rear_horiz_scroll_high = 0;
|
||||
m_rear_color = 0;
|
||||
m_rear_disable = 1;
|
||||
m_rear_refresh = 1;
|
||||
}
|
||||
|
||||
|
||||
@ -48,7 +52,6 @@ void vigilant_state::video_reset()
|
||||
update_background
|
||||
|
||||
There are three background ROMs, each one contains a 512x256 picture.
|
||||
Redraw them if the palette changes.
|
||||
**************************************************************************/
|
||||
void vigilant_state::update_background()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user