diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-05-13 23:55:42 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-05-13 23:55:42 +0800 |
commit | a3a51ea01c0c571d0859f1cb5147dcd003bc8c71 (patch) | |
tree | eeb1a7faa41ed2536fd9f55b8c389fab297e8422 /visualization | |
parent | a84ae874f0334172900d611fc098de8433f54e4c (diff) | |
download | QMidiPlayer-a3a51ea01c0c571d0859f1cb5147dcd003bc8c71.tar.xz |
Added enumerate integer options support.
Workaroud for different fonts locations in arch linux.
Diffstat (limited to 'visualization')
-rw-r--r-- | visualization/qmpvisualization.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/visualization/qmpvisualization.cpp b/visualization/qmpvisualization.cpp index f2c663e..607b2ea 100644 --- a/visualization/qmpvisualization.cpp +++ b/visualization/qmpvisualization.cpp @@ -79,10 +79,13 @@ void qmpVisualization::showThread() if(noteappearance==1)nebuf=new smEntity3DBuffer();else nebuf=NULL; tdscn=sm->smTargetCreate(wwidth*wsupersample,wheight*wsupersample,wmultisample); if(!font.loadTTF("/usr/share/fonts/truetype/freefont/FreeMono.ttf",16)) + if(!font.loadTTF("/usr/share/fonts/gnu-free-fonts/FreeMono.otf",16)) printf("W: Font load failed.\n"); if(!fonthdpi.loadTTF("/usr/share/fonts/truetype/freefont/FreeMono.ttf",180)) + if(!fonthdpi.loadTTF("/usr/share/fonts/gnu-free-fonts/FreeMono.otf",180)) printf("W: Font load failed.\n"); if(!font2.loadTTF("/usr/share/fonts/truetype/wqy/wqy-microhei.ttc",16)) + if(!font2.loadTTF("/usr/share/fonts/wenquanyi/wqy-microhei/wqy-microhei.ttc",16)) printf("W: Font load failed.\n"); pos[0]=0;pos[1]=120;pos[2]=70; rot[0]=0;rot[1]=75;rot[2]=90;ctk=0; |