bug in draw2DImage

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@823 dfc29bdd-3216-0410-991c-e03cc46cb475
master
bitplane 2007-08-04 23:49:18 +00:00
parent d64f53e4c0
commit cdcf888a3e
1 changed files with 1 additions and 1 deletions

View File

@ -966,7 +966,7 @@ void COpenGLDriver::draw2DRectangle(SColor color, const core::rect<s32>& positio
const core::dimension2d<s32>& renderTargetSize = getCurrentRenderTargetSize();
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 f32 yFact = 2.0f / renderTargetSize.Height;