fix scaling issue - flush square memory (thanks eke-eke!)

This commit is contained in:
dborth 2008-11-06 22:01:35 +00:00
parent 0f6350e4e1
commit e75f067047

View File

@ -763,6 +763,7 @@ update_video (int width, int height)
square[0] = square[9] = -xscale + GCSettings.xshift;
square[4] = square[1] = yscale - GCSettings.yshift;
square[7] = square[10] = -yscale - GCSettings.yshift;
DCFlushRange (square, sizeof(square)); // update memory BEFORE the GPU accesses it!
draw_init ();
GX_InitTexObj (&texobj, texturemem, vwidth, vheight, GX_TF_RGB565, GX_CLAMP, GX_CLAMP, GX_FALSE); // initialize the texture obj we are going to use