From ffae0f5caadac4131da445416cb550aab0aef6a1 Mon Sep 17 00:00:00 2001 From: TomW Date: Fri, 20 Nov 2015 20:59:37 +0000 Subject: [PATCH] Fixed Mach64 Y coordinate when tiling enabled. --- src/vid_ati_mach64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vid_ati_mach64.c b/src/vid_ati_mach64.c index fcccc58..9248442 100644 --- a/src/vid_ati_mach64.c +++ b/src/vid_ati_mach64.c @@ -886,7 +886,7 @@ void mach64_blit(uint32_t cpu_dat, int count, mach64_t *mach64) if (mach64->dst_cntl & DST_X_TILE) mach64->dst_y_x = (mach64->dst_y_x & 0xfff) | ((mach64->dst_y_x + (mach64->accel.dst_width << 16)) & 0xfff0000); if (mach64->dst_cntl & DST_Y_TILE) - mach64->dst_y_x = (mach64->dst_y_x & 0xfff0000) | ((mach64->dst_y_x + mach64->accel.dst_height) & 0xfff); + mach64->dst_y_x = (mach64->dst_y_x & 0xfff0000) | ((mach64->dst_y_x + (mach64->dst_height_width & 0x1fff)) & 0xfff); return; } if (mach64->accel.source_host)