SDLPP: formatting, make compileable on Linux

This commit is contained in:
2021-03-13 18:36:29 +01:00
parent d2cf54556e
commit 2f20661b5b
16 changed files with 118 additions and 100 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
#include "sdlpp_font.hpp"
namespace SDLPP {
Font::Font( const std::string &font ) : font_path(font) {}
Font::Font( const std::string &font, int size ) : Font(font) {
Font::Font( const std::string &font ) : font_path( font ) {}
Font::Font( const std::string &font, int size ) : Font( font ) {
original_size = size;
font_ptr = TTF_OpenFont( font_path.c_str(), size );
checkFont();