diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2013-11-04 23:22:15 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2013-11-04 23:22:15 +0400 |
commit | 64c346ed1ec76bf91303a7f8ca0bbd0587ba2635 (patch) | |
tree | 3c1c767dac1db9a2143123ae260783953fed32c8 /source/gameengine/GamePlayer | |
parent | fb94a539789e06148b28a73f59f0aefd0ad71e00 (diff) |
BGE Rasterizer Cleanup: The Blenderplayer now loads the monospace font so it can properly draw the framerate and profile display.
Diffstat (limited to 'source/gameengine/GamePlayer')
-rw-r--r-- | source/gameengine/GamePlayer/ghost/GPG_ghost.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp index 5bed4fa40b6..385fa0a42d8 100644 --- a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp +++ b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp @@ -88,6 +88,8 @@ extern "C" #include "BLF_translation.h" extern int datatoc_bfont_ttf_size; extern char datatoc_bfont_ttf[]; +extern int datatoc_bmonofont_ttf_size; +extern char datatoc_bmonofont_ttf[]; #ifdef __cplusplus } @@ -475,6 +477,8 @@ int main(int argc, char** argv) BLF_lang_set(""); BLF_load_mem("default", (unsigned char*)datatoc_bfont_ttf, datatoc_bfont_ttf_size); + if (blf_mono_font == -1) + blf_mono_font = BLF_load_mem_unique("monospace", (unsigned char*)datatoc_bmonofont_ttf, datatoc_bmonofont_ttf_size); // Parse command line options #if defined(DEBUG) |