Commit 7c83d876 authored by hybrid's avatar hybrid

Fixed dimension problems, spotted by Dorth.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2100 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 9719d19c
...@@ -608,7 +608,7 @@ inline u32 getTextureSizeFromSurfaceSize(u32 size) ...@@ -608,7 +608,7 @@ inline u32 getTextureSizeFromSurfaceSize(u32 size)
texHeight = lastTextureHeight; texHeight = lastTextureHeight;
/* The texture that holds this "page" of characters */ /* The texture that holds this "page" of characters */
currentImages[currentImage] = Device->getVideoDriver()->createImage(video::ECF_A8R8G8B8, core::dimension2d<s32>(textureWidth, texHeight)); currentImages[currentImage] = Device->getVideoDriver()->createImage(video::ECF_A8R8G8B8, core::dimension2du(textureWidth, texHeight));
currentImages[currentImage]->fill(video::SColor(alpha ? 0 : 255,0,0,0)); currentImages[currentImage]->fill(video::SColor(alpha ? 0 : 255,0,0,0));
for (core::map<wchar_t, u32>::Iterator it = CharMap.getIterator(); !it.atEnd(); it++) for (core::map<wchar_t, u32>::Iterator it = CharMap.getIterator(); !it.atEnd(); it++)
......
...@@ -458,7 +458,7 @@ void createGUI(IrrlichtDevice* device, CFontTool* fc) ...@@ -458,7 +458,7 @@ void createGUI(IrrlichtDevice* device, CFontTool* fc)
int main() int main()
{ {
IrrlichtDevice* device =createDevice(video::EDT_OPENGL, core::dimension2d<s32>(800, 600)); IrrlichtDevice* device =createDevice(video::EDT_OPENGL, core::dimension2du(800, 600));
video::IVideoDriver* driver = device->getVideoDriver(); video::IVideoDriver* driver = device->getVideoDriver();
scene::ISceneManager* smgr = device->getSceneManager(); scene::ISceneManager* smgr = device->getSceneManager();
gui::IGUIEnvironment *env = device->getGUIEnvironment(); gui::IGUIEnvironment *env = device->getGUIEnvironment();
......
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