mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Double VI.height in interlaced mode when yScale = 1.
This fixes frame buffer height for Star Wars Ep.1 Racer. Not sure that this solution is correct!
This commit is contained in:
parent
d121144760
commit
c551230a8e
5
VI.cpp
5
VI.cpp
|
@ -29,7 +29,10 @@ void VI_UpdateSize()
|
|||
VI.interlaced = (*REG.VI_STATUS & 0x40) != 0;
|
||||
|
||||
VI.width = (hEnd - hStart) * xScale;
|
||||
VI.real_height = (vEnd - vStart) * yScale;
|
||||
if (VI.interlaced && _SHIFTR(*REG.VI_Y_SCALE, 0, 12) == 1024)
|
||||
VI.real_height = (vEnd - vStart) << 1;
|
||||
else
|
||||
VI.real_height = (vEnd - vStart) * yScale;
|
||||
VI.height = VI.real_height*1.0126582f;
|
||||
|
||||
if (VI.vStart == 0) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user