mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Fix VI.width for non-interlaced mode.
Fixed vertical black bar in Mario Tennis.
This commit is contained in:
parent
e139173e77
commit
e0d71c78c0
9
VI.cpp
9
VI.cpp
|
@ -48,8 +48,13 @@ void VI_UpdateSize()
|
||||||
VI.real_height = (u32)floor(((vEnd - vStart) >> 1) * yScale + 0.5f);
|
VI.real_height = (u32)floor(((vEnd - vStart) >> 1) * yScale + 0.5f);
|
||||||
#else
|
#else
|
||||||
VI.real_height = (((vEnd - vStart) >> 1) * vScale) >> 10;
|
VI.real_height = (((vEnd - vStart) >> 1) * vScale) >> 10;
|
||||||
if (VI.interlaced && VI.width != 0)
|
if (VI.interlaced) {
|
||||||
VI.real_height *= *REG.VI_WIDTH / VI.width;
|
if (VI.width != 0)
|
||||||
|
VI.real_height *= *REG.VI_WIDTH / VI.width;
|
||||||
|
} else {
|
||||||
|
if (*REG.VI_WIDTH > 0)
|
||||||
|
VI.width = min(VI.width, *REG.VI_WIDTH);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (VI.interlaced && VI.real_height % 2 == 1)
|
if (VI.interlaced && VI.real_height % 2 == 1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user