X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fdfxvideo%2Fprim.c;fp=plugins%2Fdfxvideo%2Fprim.c;h=cc98a8a98204e1877d5791e5add05749bf31863f;hp=b36d55633e9fff2bbbeacfadbb749c4b649462f7;hb=e429fc6073077795431d8fecf18eab4c0c9218b3;hpb=fc42805bfb38d33e23b4eddb115cf9ab88a4345a diff --git a/plugins/dfxvideo/prim.c b/plugins/dfxvideo/prim.c index b36d5563..cc98a8a9 100644 --- a/plugins/dfxvideo/prim.c +++ b/plugins/dfxvideo/prim.c @@ -375,6 +375,7 @@ static void cmdTextureWindow(unsigned char *baseAddr) TWin.Position.y1 = 128; // 10000 else TWin.Position.y1 = 256; // 00000 + TWin.ymask = TWin.Position.y1 - 1; // Texture window size is determined by the least bit set of the relevant 5 bits @@ -390,6 +391,7 @@ static void cmdTextureWindow(unsigned char *baseAddr) TWin.Position.x1 = 128; // 10000 else TWin.Position.x1 = 256; // 00000 + TWin.xmask = TWin.Position.x1 - 1; // Re-calculate the bit field, because we can't trust what is passed in the data