screen: fix buffer overflow crash with VIDEO_VARIABLE_WIDTH screens [AmatCoder]
This commit is contained in:
parent
d2aa062d94
commit
41a80334ce
@ -635,12 +635,12 @@ void screen_device::allocate_scan_bitmaps()
|
|||||||
else
|
else
|
||||||
m_scan_bitmaps[j].push_back(new bitmap_rgb32(effwidth, 1));
|
m_scan_bitmaps[j].push_back(new bitmap_rgb32(effwidth, 1));
|
||||||
}
|
}
|
||||||
m_scan_widths.push_back(m_width);
|
m_scan_widths.push_back(effwidth);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for (int i = effheight; i < old_height; i++)
|
for (int i = old_height - 1; i >= effheight; i--)
|
||||||
{
|
{
|
||||||
for (int j = 0; j < 2; j++)
|
for (int j = 0; j < 2; j++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user