mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
restore tile cache
Some checks failed
CI (Linux) / build-linux (-U_FORTIFY_SOURCE, gcc, gcc, g++, mametiny, tiny) (push) Has been cancelled
CI (Linux) / build-linux (clang, clang, clang++, mame, mame) (push) Has been cancelled
CI (macOS) / build-macos (push) Has been cancelled
CI (Windows) / build-windows (clang, clang, clang++, mametiny, tiny) (push) Has been cancelled
CI (Windows) / build-windows (gcc, gcc, g++, mame, mame) (push) Has been cancelled
Build documentation / build-docs (push) Has been cancelled
XML/JSON validation / validate (push) Has been cancelled
Compile UI translations / build-language (push) Has been cancelled
Some checks failed
CI (Linux) / build-linux (-U_FORTIFY_SOURCE, gcc, gcc, g++, mametiny, tiny) (push) Has been cancelled
CI (Linux) / build-linux (clang, clang, clang++, mame, mame) (push) Has been cancelled
CI (macOS) / build-macos (push) Has been cancelled
CI (Windows) / build-windows (clang, clang, clang++, mametiny, tiny) (push) Has been cancelled
CI (Windows) / build-windows (gcc, gcc, g++, mame, mame) (push) Has been cancelled
Build documentation / build-docs (push) Has been cancelled
XML/JSON validation / validate (push) Has been cancelled
Compile UI translations / build-language (push) Has been cancelled
This commit is contained in:
parent
d4196403d5
commit
15ce2b810e
@ -238,6 +238,9 @@ void tsconf_state::device_post_load()
|
||||
{
|
||||
spectrum_128_state::device_post_load();
|
||||
m_sprites_cache.clear();
|
||||
copy_tiles_to_raw(m_ram->pointer() + ((m_regs[SG_PAGE] & 0xf8) << 14), m_sprites_raw.target());
|
||||
copy_tiles_to_raw(m_ram->pointer() + ((m_regs[T0_G_PAGE] & 0xf8) << 14), m_sprites_raw.target());
|
||||
copy_tiles_to_raw(m_ram->pointer() + ((m_regs[T1_G_PAGE] & 0xf8) << 14), m_sprites_raw.target());
|
||||
}
|
||||
|
||||
INPUT_PORTS_START( tsconf )
|
||||
|
@ -173,6 +173,7 @@ private:
|
||||
void tsconf_draw_gfx(bitmap_rgb32 &bitmap, const rectangle &cliprect);
|
||||
void draw_sprites(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
|
||||
void tsconf_update_video_mode();
|
||||
void copy_tiles_to_raw(const u8 *tiles_src, u8 *raw_target);
|
||||
|
||||
u8 tsconf_port_xx1f_r(offs_t offset);
|
||||
void tsconf_port_7ffd_w(u8 data);
|
||||
|
@ -539,7 +539,7 @@ u8 tsconf_state::tsconf_port_xxaf_r(offs_t port)
|
||||
return data;
|
||||
}
|
||||
|
||||
static void copy_tiles_to_raw(const u8 *tiles_src, u8 *raw_target)
|
||||
void tsconf_state::copy_tiles_to_raw(const u8 *tiles_src, u8 *raw_target)
|
||||
{
|
||||
for(u32 ln = 0; ln < PAGE4K(8); ln += 4)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user