Fixed a few compiler warnings.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2555 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@@ -486,8 +486,8 @@ void UpdateViewport()
|
||||
vp.MinZ = (xfregs.rawViewport[5] - xfregs.rawViewport[2])/16777215.0f;
|
||||
vp.MaxZ = xfregs.rawViewport[5]/16777215.0f;
|
||||
|
||||
wid = ceil(fabs(2 * xfregs.rawViewport[0]));
|
||||
hei = ceil(fabs(2 * xfregs.rawViewport[1]));
|
||||
wid = int(ceil(fabs(2 * xfregs.rawViewport[0])));
|
||||
hei = int(ceil(fabs(2 * xfregs.rawViewport[1])));
|
||||
|
||||
vp.X = (int)(xfregs.rawViewport[3] - xfregs.rawViewport[0] - 342 - scissorXOff) + xoffs;
|
||||
vp.Y = (int)(xfregs.rawViewport[4] - xfregs.rawViewport[1] - 342 - scissorYOff) + yoffs;
|
||||
|
||||
@@ -152,8 +152,8 @@ void GetMousePos(float& x, float& y)
|
||||
PictureHeight = PictureHeight * Ratio;
|
||||
|
||||
// Adjust the X and Y offset
|
||||
XOffset = XOffset - (IncreasedWidth / 2.0);
|
||||
YOffset = YOffset - (IncreasedHeight / 2.0);
|
||||
XOffset = float(XOffset - (IncreasedWidth / 2.0));
|
||||
YOffset = float(YOffset - (IncreasedHeight / 2.0));
|
||||
|
||||
// Logging
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user