bug in draw2DImage
git-svn-id: http://svn.code.sf.net/p/irrlicht/code/trunk@823 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
78a2767171
commit
734934cdb1
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user