1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Add reverse width and height to VIInfo.

This commit is contained in:
Sergey Lipskiy 2014-03-21 12:42:37 +07:00
parent 7c0b58cb25
commit 3f72a7aefc
2 changed files with 3 additions and 0 deletions

2
VI.cpp
View File

@ -39,6 +39,8 @@ void VI_UpdateSize()
if (VI.width == 0.0f) VI.width = *REG.VI_WIDTH;
if (VI.height == 0.0f) VI.height = 240.0f;
VI.rwidth = 1.0f / VI.width;
VI.rheight = 1.0f / VI.height;
}
void VI_UpdateScreen()

1
VI.h
View File

@ -5,6 +5,7 @@
struct VIInfo
{
u32 width, height, real_height;
f32 rwidth, rheight;
u32 vStart, vEnd, vHeight;
u32 lastOrigin;