From d7f6c8b551be2a4a431ca274bc74a41937d29c43 Mon Sep 17 00:00:00 2001 From: qeeg Date: Wed, 27 Apr 2022 20:44:06 -0500 Subject: xavix2.cpp: Fix scaling of background in ltv_naru. (#9633) --- src/mame/drivers/xavix2.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/mame/drivers/xavix2.cpp b/src/mame/drivers/xavix2.cpp index bb0f3d638df..b515aa8c910 100644 --- a/src/mame/drivers/xavix2.cpp +++ b/src/mame/drivers/xavix2.cpp @@ -342,6 +342,8 @@ void xavix2_state::gpu_update(u16 count, u16 adr) u32 y = (command >> 11) & 0x3ff; u32 sx = 1+(descsize & 0xff); u32 sy = 1 + ((descsize >> 8) & 0xff); + u32 scalex = (command >> 40) & 0x3; //only 1 and 2 seen as values for these two so far + u32 scaley = (command >> 46) & 0x3; u32 bpp = 1 + ((descsize >> 24) & 7); logerror("gpu - data %06x size %08x w=%x h=%x ?=%x bpp=%x pal=%x\n", sadr, descsize, sx, sy, (descsize >> 16) & 0xff, bpp, descsize >> 27); @@ -364,7 +366,13 @@ void xavix2_state::gpu_update(u16 count, u16 adr) avail = 64; } u32 color = m_palette[palette | (v & mask)]; - if (color) m_sd[y+yy][x+xx] = color; + if(color) { + for(u32 yyy = 0; yyy>= bpp; avail -= bpp; } -- cgit v1.2.3