diff options
author | sapier <Sapier at GMX dot net> | 2014-11-23 13:40:43 +0100 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-11-30 17:50:09 +0100 |
commit | dceb9f7d6058785cf60d9dbcc8eecdcee1053412 (patch) | |
tree | 0cbaa6969210d3e104f195ac5d3c2cabad8d6338 /src/client.cpp | |
parent | 25945dc5395a03cab069ff0e6470ba8d59b03978 (diff) | |
download | minetest-dceb9f7d6058785cf60d9dbcc8eecdcee1053412.tar.gz minetest-dceb9f7d6058785cf60d9dbcc8eecdcee1053412.tar.bz2 minetest-dceb9f7d6058785cf60d9dbcc8eecdcee1053412.zip |
Implement proper font handling
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client.cpp b/src/client.cpp index 074ac9ba6..e9172e6fc 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -2726,7 +2726,7 @@ void Client::afterContentReceived(IrrlichtDevice *device, gui::IGUIFont* font) { verbosestream<<"Updating item textures and meshes"<<std::endl; wchar_t* text = wgettext("Item textures..."); - draw_load_screen(text, device, guienv, font, 0, 0); + draw_load_screen(text, device, guienv, 0, 0); std::set<std::string> names = m_itemdef->getAll(); size_t size = names.size(); size_t count = 0; @@ -2739,7 +2739,7 @@ void Client::afterContentReceived(IrrlichtDevice *device, gui::IGUIFont* font) count++; percent = count*100/size; if (count%50 == 0) // only update every 50 item - draw_load_screen(text, device, guienv, font, 0, percent); + draw_load_screen(text, device, guienv, 0, percent); } delete[] text; } @@ -2775,7 +2775,7 @@ void Client::makeScreenshot(IrrlichtDevice *device) irr::video::IVideoDriver *driver = device->getVideoDriver(); irr::video::IImage* const raw_image = driver->createScreenShot(); if (raw_image) { - irr::video::IImage* const image = driver->createImage(video::ECF_R8G8B8, + irr::video::IImage* const image = driver->createImage(video::ECF_R8G8B8, raw_image->getDimension()); if (image) { |