mirror of
https://github.com/dborth/fceugx.git
synced 2024-10-31 22:45:05 +01:00
fix scaling issue (flush square memory)
This commit is contained in:
parent
549c295f9b
commit
28880cb6af
@ -438,6 +438,7 @@ UpdateScaling()
|
||||
square[3] = square[6] = (xscale);
|
||||
square[1] = square[4] = (yscale);
|
||||
square[7] = square[10] = (-yscale);
|
||||
DCFlushRange (square, sizeof(square)); // update memory BEFORE the GPU accesses it!
|
||||
draw_init ();
|
||||
|
||||
if(updateScaling)
|
||||
@ -509,12 +510,14 @@ InitGCVideo ()
|
||||
if (vmode->viTVMode == VI_TVMODE_NTSC_PROG)
|
||||
progressive = true;
|
||||
|
||||
#ifdef HW_RVL
|
||||
// widescreen fix
|
||||
if(CONF_GetAspectRatio())
|
||||
{
|
||||
vmode->viWidth = 678;
|
||||
vmode->viXOrigin = (VI_MAX_WIDTH_PAL - 678) / 2;
|
||||
}
|
||||
#endif
|
||||
|
||||
// configure VI
|
||||
VIDEO_Configure (vmode);
|
||||
|
Loading…
Reference in New Issue
Block a user