File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient
Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1652,7 +1652,7 @@ void W3DView::scrollBy( Coord2D *delta )
16521652
16531653 start.X = getWidth ();
16541654 start.Y = getHeight ();
1655- Real aspect = getHeight () == 0 ? 1 : getWidth ()/ getHeight ();
1655+ Real aspect = getHeight () == 0 ? 1 : (Real) getWidth () / (Real) getHeight ();
16561656 end.X = start.X + delta->x * SCROLL_RESOLUTION;
16571657 end.Y = start.Y + delta->y * SCROLL_RESOLUTION*aspect;
16581658
Original file line number Diff line number Diff line change @@ -1815,7 +1815,7 @@ void W3DView::scrollBy( Coord2D *delta )
18151815
18161816 start.X = getWidth ();
18171817 start.Y = getHeight ();
1818- Real aspect = getHeight () == 0 ? 1 : getWidth ()/ getHeight ();
1818+ Real aspect = getHeight () == 0 ? 1 : (Real) getWidth () / (Real) getHeight ();
18191819 end.X = start.X + delta->x * SCROLL_RESOLUTION;
18201820 end.Y = start.Y + delta->y * SCROLL_RESOLUTION*aspect;
18211821
You can’t perform that action at this time.
0 commit comments