gpu_unai: fix clear masking
[pcsx_rearmed.git] / plugins / gpu_unai / gpu_raster_image.h
index 909ca39..7c9eb4d 100644 (file)
@@ -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;