mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-27 21:14:21 +01:00
fix scaling issue - flush square memory (thanks eke-eke!)
This commit is contained in:
parent
0f6350e4e1
commit
e75f067047
@ -763,6 +763,7 @@ update_video (int width, int height)
|
|||||||
square[0] = square[9] = -xscale + GCSettings.xshift;
|
square[0] = square[9] = -xscale + GCSettings.xshift;
|
||||||
square[4] = square[1] = yscale - GCSettings.yshift;
|
square[4] = square[1] = yscale - GCSettings.yshift;
|
||||||
square[7] = square[10] = -yscale - GCSettings.yshift;
|
square[7] = square[10] = -yscale - GCSettings.yshift;
|
||||||
|
DCFlushRange (square, sizeof(square)); // update memory BEFORE the GPU accesses it!
|
||||||
draw_init ();
|
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
|
GX_InitTexObj (&texobj, texturemem, vwidth, vheight, GX_TF_RGB565, GX_CLAMP, GX_CLAMP, GX_FALSE); // initialize the texture obj we are going to use
|
||||||
|
Loading…
Reference in New Issue
Block a user