Date:2014-01-15 22:02:30 (4 years 10 months ago)
Author:Paul Cercueil
Commit:67ac54e9708e9e3ca5ef9d9a016a0e8b1713f2f1
Message:Handle the skin: prefix on the font path

Files: src/gmenu2x.cpp (1 diff)

Change Details

src/gmenu2x.cpp
349349}
350350
351351void GMenu2X::initFont() {
352    const string path = skinConfStr["font"];
352    if (font) {
353        delete font;
354        font = NULL;
355    }
356
357    string path = skinConfStr["font"];
353358    if (!path.empty()) {
354359        unsigned int size = skinConfInt["fontsize"];
355360        if (!size)
356361            size = 12;
362        if (path.substr(0,5)=="skin:")
363            path = sc.getSkinFilePath(path.substr(5, path.length()));
357364        font = new Font(path, size);
358365    } else {
359366        font = Font::defaultFont();

Archive Download the corresponding diff file



interactive