From: notaz Date: Mon, 27 Nov 2023 22:47:16 +0000 (+0200) Subject: gpu_unai: fix clear masking X-Git-Tag: r24~32 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=commitdiff_plain;h=427a3f291dc6cc8247425983b0c94f21286612d9 gpu_unai: fix clear masking --- diff --git a/plugins/gpu_unai/gpu_raster_image.h b/plugins/gpu_unai/gpu_raster_image.h index 909ca390..7c9eb4d9 100644 --- a/plugins/gpu_unai/gpu_raster_image.h +++ b/plugins/gpu_unai/gpu_raster_image.h @@ -160,7 +160,7 @@ void gpuClearImage(PtrUnion packet) x0 = le16_to_s16(packet.U2[2]); y0 = le16_to_s16(packet.U2[3]); w0 = le16_to_s16(packet.U2[4]) & 0x3ff; - h0 = le16_to_s16(packet.U2[5]) & 0x3ff; + h0 = le16_to_s16(packet.U2[5]) & 0x1ff; w0 += x0; if (x0 < 0) x0 = 0;