Commit cdcf888a authored by bitplane's avatar bitplane

bug in draw2DImage

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@823 dfc29bdd-3216-0410-991c-e03cc46cb475
parent d64f53e4
...@@ -966,7 +966,7 @@ void COpenGLDriver::draw2DRectangle(SColor color, const core::rect<s32>& positio ...@@ -966,7 +966,7 @@ void COpenGLDriver::draw2DRectangle(SColor color, const core::rect<s32>& positio
const core::dimension2d<s32>& renderTargetSize = getCurrentRenderTargetSize(); const core::dimension2d<s32>& renderTargetSize = getCurrentRenderTargetSize();
const s32 xPlus = renderTargetSize.Width/2; const s32 xPlus = renderTargetSize.Width/2;
const f32 xFact = 2.0f / renderTargetSize.Width/2; const f32 xFact = 2.0f / renderTargetSize.Width;
const s32 yPlus = renderTargetSize.Height-(renderTargetSize.Height/2); const s32 yPlus = renderTargetSize.Height-(renderTargetSize.Height/2);
const f32 yFact = 2.0f / renderTargetSize.Height; const f32 yFact = 2.0f / renderTargetSize.Height;
......
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