mirror of
https://github.com/holub/mame
synced 2025-06-30 16:00:01 +03:00
Actually found something that uses this, fixed (Wangan Midnight Dead Heat + Real Arrange, if you are wondering)
This commit is contained in:
parent
cd67733678
commit
7fe758f023
@ -3355,6 +3355,7 @@ void saturn_state::draw_rgb32_bitmap(bitmap_rgb32 &bitmap, const rectangle &clip
|
|||||||
int scrolly = stv2_current_tilemap.scrolly;
|
int scrolly = stv2_current_tilemap.scrolly;
|
||||||
int r,g,b;
|
int r,g,b;
|
||||||
UINT32 dot_data;
|
UINT32 dot_data;
|
||||||
|
int xf, yf;
|
||||||
|
|
||||||
xsize = (stv2_current_tilemap.bitmap_size & 2) ? 1024 : 512;
|
xsize = (stv2_current_tilemap.bitmap_size & 2) ? 1024 : 512;
|
||||||
ysize = (stv2_current_tilemap.bitmap_size & 1) ? 512 : 256;
|
ysize = (stv2_current_tilemap.bitmap_size & 1) ? 512 : 256;
|
||||||
@ -3369,8 +3370,13 @@ void saturn_state::draw_rgb32_bitmap(bitmap_rgb32 &bitmap, const rectangle &clip
|
|||||||
if(!stv_vdp2_window_process(xdst,ydst))
|
if(!stv_vdp2_window_process(xdst,ydst))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
xsrc = (xdst + scrollx) & (xsize_mask-1);
|
xf = stv2_current_tilemap.incx * xdst;
|
||||||
ysrc = (ydst + scrolly) & (ysize_mask-1);
|
xf>>=16;
|
||||||
|
yf = stv2_current_tilemap.incy * ydst;
|
||||||
|
yf>>=16;
|
||||||
|
|
||||||
|
xsrc = (xf + scrollx) & (xsize_mask-1);
|
||||||
|
ysrc = (yf + scrolly) & (ysize_mask-1);
|
||||||
src_offs = (xsrc + (ysrc*xsize));
|
src_offs = (xsrc + (ysrc*xsize));
|
||||||
src_offs *= 4;
|
src_offs *= 4;
|
||||||
src_offs += map_offset;
|
src_offs += map_offset;
|
||||||
@ -3440,7 +3446,7 @@ void saturn_state::stv_vdp2_draw_basic_bitmap(bitmap_rgb32 &bitmap, const rectan
|
|||||||
// case 0: draw_4bpp_bitmap(bitmap,cliprect); return;
|
// case 0: draw_4bpp_bitmap(bitmap,cliprect); return;
|
||||||
case 1: draw_8bpp_bitmap(bitmap,cliprect); return;
|
case 1: draw_8bpp_bitmap(bitmap,cliprect); return;
|
||||||
case 3: draw_rgb15_bitmap(bitmap,cliprect); return;
|
case 3: draw_rgb15_bitmap(bitmap,cliprect); return;
|
||||||
// case 4: draw_rgb32_bitmap(bitmap,cliprect); return;
|
case 4: draw_rgb32_bitmap(bitmap,cliprect); return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* intentional fall-through*/
|
/* intentional fall-through*/
|
||||||
|
Loading…
Reference in New Issue
Block a user