Added libpng as a dependency for static freetype build.

Upgraded SDL2.
This commit is contained in:
Martín Lucas Golini
2022-02-11 10:51:22 -03:00
parent 5440a2ef77
commit 04aa888427
44 changed files with 43524 additions and 39 deletions

View File

@@ -1980,10 +1980,10 @@ void App::loadFolder( const std::string& path ) {
FontTrueType* App::loadFont( const std::string& name, std::string fontPath,
const std::string& fallback ) {
if ( fontPath.empty() || !FileSystem::fileExists( fontPath ) )
fontPath = fallback;
if ( isRelativePath( fontPath ) )
fontPath = mResPath + fontPath;
if ( fontPath.empty() || !FileSystem::fileExists( fontPath ) )
fontPath = fallback;
return FontTrueType::New( name, fontPath );
}
@@ -2318,6 +2318,8 @@ void App::init( const std::string& file, const Float& pidelDensity ) {
{ "go-to-line", 0xf1f8 },
{ "table-view", 0xf1de },
{ "list-view", 0xecf1 },
{ "menu-unfold", 0xef40 },
{ "menu-fold", 0xef3d },
};
for ( const auto& icon : icons )
iconTheme->add( UIGlyphIcon::New( icon.first, iconFont, icon.second ) );