mirror of
https://github.com/holub/mame
synced 2025-07-02 00:29:37 +03:00
Revert "-svg_renderer: Flag when output contents have not changed. [Ryan Holtz] (#8791)"
This reverts commit b0ac175b49
.
This commit is contained in:
parent
9ef70e0322
commit
98ec00423d
@ -79,7 +79,6 @@ private:
|
|||||||
int m_sx, m_sy;
|
int m_sx, m_sy;
|
||||||
double m_scale;
|
double m_scale;
|
||||||
std::vector<u32> m_background;
|
std::vector<u32> m_background;
|
||||||
bool m_has_changed_since_last_update;
|
|
||||||
|
|
||||||
std::vector<cached_bitmap> m_cache;
|
std::vector<cached_bitmap> m_cache;
|
||||||
|
|
||||||
@ -198,10 +197,6 @@ int screen_device::svg_renderer::render(screen_device &screen, bitmap_rgb32 &bit
|
|||||||
rebuild_cache();
|
rebuild_cache();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_has_changed_since_last_update)
|
|
||||||
return UPDATE_HAS_NOT_CHANGED;
|
|
||||||
m_has_changed_since_last_update = false;
|
|
||||||
|
|
||||||
for(unsigned int y = 0; y < m_sy; y++)
|
for(unsigned int y = 0; y < m_sy; y++)
|
||||||
memcpy(bitmap.raw_pixptr(y, 0), &m_background[y * m_sx], m_sx * 4);
|
memcpy(bitmap.raw_pixptr(y, 0), &m_background[y * m_sx], m_sx * 4);
|
||||||
|
|
||||||
@ -232,10 +227,6 @@ void screen_device::svg_renderer::output_change(const char *outname, s32 value)
|
|||||||
auto l = m_key_ids.find(outname);
|
auto l = m_key_ids.find(outname);
|
||||||
if (l == m_key_ids.end())
|
if (l == m_key_ids.end())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (m_key_state[l->second] != value)
|
|
||||||
m_has_changed_since_last_update = true;
|
|
||||||
|
|
||||||
m_key_state[l->second] = value;
|
m_key_state[l->second] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -524,8 +515,6 @@ void screen_device::svg_renderer::rebuild_cache()
|
|||||||
spos = epos;
|
spos = epos;
|
||||||
epos = ckey;
|
epos = ckey;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_has_changed_since_last_update = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//**************************************************************************
|
//**************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user