fix SDL config DUB build under windows - fix #304

This commit is contained in:
Vadim Lopatin 2016-10-14 16:57:24 +03:00
parent 31e99433cb
commit c41225853c
2 changed files with 3 additions and 1 deletions

View File

@ -718,6 +718,8 @@ class FreeTypeFontManager : FontManager {
private int myabs(int n) { return n >= 0 ? n : -n; }
version(Windows) {
} else {
bool registerFontConfigFonts(FreeTypeFontManager fontMan) {
import fontconfig;
@ -940,3 +942,4 @@ bool registerFontConfigFonts(FreeTypeFontManager fontMan) {
return facesFound > 0;
}
}

View File

@ -1240,7 +1240,6 @@ int myWinMain(void* hInstance, void* hPrevInstance, char* lpCmdLine, int iCmdSho
Log.e("No font files found!!!");
Log.e("Currently, only hardcoded font paths implemented.");
Log.e("Probably you can modify sdlapp.d to add some fonts for your system.");
Log.e("TODO: use fontconfig");
Log.e("******************************************************************");
assert(false);
}