Commit 1ff81da7 authored by hybrid's avatar hybrid

Fix font loading, bug found by Christian Clavet.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2524 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 47b4dfe5
......@@ -295,9 +295,10 @@ void CGUIFont::readPositions(video::IImage* image, s32& lowerRightPositions)
video::SColor colorTopLeft = image->getPixel(0,0);
colorTopLeft.setAlpha(255);
image->setPixel(0,0,colorTopLeft);
video::SColor colorLowerRight = image->getPixel(1,0);
video::SColor colorBackGround = image->getPixel(2,0);
video::SColor colorBackGroundTransparent = 0; // 0x7FFF & colorBackGround;
video::SColor colorBackGroundTransparent = 0;
image->setPixel(1,0,colorBackGround);
......
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