[Scummvm-git-logs] scummvm master -> 8e156fe37de4c97d5c2bf24acf2ff82f0e37293a

lephilousophe lephilousophe at users.noreply.github.com
Sat Mar 14 16:05:57 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
8e156fe37d GRAPHICS: Fix compilation on old FreeType2 versions


Commit: 8e156fe37de4c97d5c2bf24acf2ff82f0e37293a
    https://github.com/scummvm/scummvm/commit/8e156fe37de4c97d5c2bf24acf2ff82f0e37293a
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2020-03-14T16:56:25+01:00

Commit Message:
GRAPHICS: Fix compilation on old FreeType2 versions

Old FreeType2 had FT_Bitmap_New which got renamed later in FT_Bitmap_Init

Changed paths:
    graphics/fonts/ttf.cpp


diff --git a/graphics/fonts/ttf.cpp b/graphics/fonts/ttf.cpp
index 33334e7c1d..6628b6932c 100644
--- a/graphics/fonts/ttf.cpp
+++ b/graphics/fonts/ttf.cpp
@@ -719,7 +719,7 @@ bool TTFFont::cacheGlyph(Glyph &glyph, uint32 chr) const {
 		
 		bitmap = &_face->glyph->bitmap;
 #elif FAKE_BOLD >= 1
-		FT_Bitmap_Init(&ownBitmap);
+		FT_Bitmap_New(&ownBitmap);
 
 		if (FT_Bitmap_Copy(_face->glyph->library, &_face->glyph->bitmap, &ownBitmap))
 			return false;




More information about the Scummvm-git-logs mailing list