mirror of
https://github.com/holub/mame
synced 2025-07-07 02:50:50 +03:00
hitpoker.cpp, tlc34076: Initialize more pointers and variables
This commit is contained in:
parent
d961efa925
commit
672787fe45
@ -56,10 +56,15 @@ void tlc34076_device::device_start()
|
||||
{
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
m_local_paletteram[i] = std::make_unique<uint8_t[]>(0x100);
|
||||
m_local_paletteram[i] = make_unique_clear<uint8_t[]>(0x100);
|
||||
save_pointer(NAME(m_local_paletteram[i]), 0x100, i);
|
||||
}
|
||||
|
||||
std::fill(std::begin(m_regs), std::end(m_regs), 0);
|
||||
std::fill(std::begin(m_palettedata), std::end(m_palettedata), 0);
|
||||
m_readindex = 0;
|
||||
m_writeindex = 0;
|
||||
|
||||
save_item(NAME(m_regs));
|
||||
|
||||
save_item(NAME(m_writeindex));
|
||||
|
@ -100,9 +100,9 @@ private:
|
||||
|
||||
void hitpoker_state::video_start()
|
||||
{
|
||||
m_videoram = std::make_unique<uint8_t[]>(0x3600);
|
||||
m_paletteram = std::make_unique<uint8_t[]>(0x1000);
|
||||
m_colorram = std::make_unique<uint8_t[]>(0x2000);
|
||||
m_videoram = make_unique_clear<uint8_t[]>(0x3600);
|
||||
m_paletteram = make_unique_clear<uint8_t[]>(0x1000);
|
||||
m_colorram = make_unique_clear<uint8_t[]>(0x2000);
|
||||
}
|
||||
|
||||
uint32_t hitpoker_state::screen_update_hitpoker(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
|
Loading…
Reference in New Issue
Block a user