use std algo instead of manual setting (nw)

This commit is contained in:
Miodrag Milanovic 2016-10-21 12:46:54 +02:00
parent a1a6f28e2b
commit 66c56d1c9a

View File

@ -114,9 +114,7 @@ screen_device_svg_renderer::screen_device_svg_renderer(memory_region *region)
}
}
m_key_state.resize(m_key_count);
// Don't memset a vector<bool>, they're special, and not in a good way
for(int i=0; i != m_key_count; i++)
m_key_state[i] = false;
std::fill(m_key_state.begin(),m_key_state.end(),false);
m_sx = m_sy = 0;
m_scale = 1.0;