Commit 471df3f0 authored by cutealien's avatar cutealien

CSceneCollisionManager::getScreenCoordinatesFrom3DPosition uses now...

CSceneCollisionManager::getScreenCoordinatesFrom3DPosition uses now getCurrentRenderTargetSize instead of getScreenSize.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3891 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 8fb7ee72
...@@ -889,7 +889,7 @@ core::position2d<s32> CSceneCollisionManager::getScreenCoordinatesFrom3DPosition ...@@ -889,7 +889,7 @@ core::position2d<s32> CSceneCollisionManager::getScreenCoordinatesFrom3DPosition
if (useViewPort) if (useViewPort)
dim.set(Driver->getViewPort().getWidth(), Driver->getViewPort().getHeight()); dim.set(Driver->getViewPort().getWidth(), Driver->getViewPort().getHeight());
else else
dim=(Driver->getScreenSize()); dim=(Driver->getCurrentRenderTargetSize());
dim.Width /= 2; dim.Width /= 2;
dim.Height /= 2; dim.Height /= 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment