mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Fix deprecated calls with Irrlicht 1.9
This commit is contained in:
parent
62e3593944
commit
66b5c08664
4 changed files with 8 additions and 11 deletions
|
@ -103,7 +103,7 @@ video::IImage* SGUITTGlyph::createGlyphImage(const FT_Bitmap& bits, video::IVide
|
|||
|
||||
// Load the monochrome data in.
|
||||
const u32 image_pitch = image->getPitch() / sizeof(u16);
|
||||
u16* image_data = (u16*)image->lock();
|
||||
u16* image_data = (u16*)image->getData();
|
||||
u8* glyph_data = bits.buffer;
|
||||
|
||||
for (s32 y = 0; y < (s32)bits.rows; ++y)
|
||||
|
@ -119,7 +119,6 @@ video::IImage* SGUITTGlyph::createGlyphImage(const FT_Bitmap& bits, video::IVide
|
|||
}
|
||||
image_data += image_pitch;
|
||||
}
|
||||
image->unlock();
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -133,7 +132,7 @@ video::IImage* SGUITTGlyph::createGlyphImage(const FT_Bitmap& bits, video::IVide
|
|||
// Load the grayscale data in.
|
||||
const float gray_count = static_cast<float>(bits.num_grays);
|
||||
const u32 image_pitch = image->getPitch() / sizeof(u32);
|
||||
u32* image_data = (u32*)image->lock();
|
||||
u32* image_data = (u32*)image->getData();
|
||||
u8* glyph_data = bits.buffer;
|
||||
for (s32 y = 0; y < (s32)bits.rows; ++y)
|
||||
{
|
||||
|
@ -145,7 +144,6 @@ video::IImage* SGUITTGlyph::createGlyphImage(const FT_Bitmap& bits, video::IVide
|
|||
}
|
||||
glyph_data += bits.pitch;
|
||||
}
|
||||
image->unlock();
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue