1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Fix VI.width for non-interlaced mode.

Fixed vertical black bar in Mario Tennis.
This commit is contained in:
Sergey Lipskiy 2014-12-22 13:48:45 +06:00
parent e139173e77
commit e0d71c78c0

9
VI.cpp
View File

@ -48,8 +48,13 @@ void VI_UpdateSize()
VI.real_height = (u32)floor(((vEnd - vStart) >> 1) * yScale + 0.5f);
#else
VI.real_height = (((vEnd - vStart) >> 1) * vScale) >> 10;
if (VI.interlaced && VI.width != 0)
VI.real_height *= *REG.VI_WIDTH / VI.width;
if (VI.interlaced) {
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
if (VI.interlaced && VI.real_height % 2 == 1)