diff options
author | Chris Xiong <chirs241097@gmail.com> | 2019-12-04 23:02:40 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2019-12-04 23:02:40 +0800 |
commit | 06496661120f7858f26a29f76631e6f0a0ebae7f (patch) | |
tree | 569d912a4d10a9439e2def8d71e5d9dcafe2cb95 /visualization | |
parent | 96a17cb0283647b7a5b7afa9c35a5d1d2b8d6fc7 (diff) | |
download | QMidiPlayer-06496661120f7858f26a29f76631e6f0a0ebae7f.tar.xz |
Do not crash if midi device is disconnected during the playback.
Linux build no longer searches working directory for plugins. Instead
it should search the plugin folder in the executable directory.
Documentation update.
Diffstat (limited to 'visualization')
-rw-r--r-- | visualization/qmpvisualization.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/visualization/qmpvisualization.cpp b/visualization/qmpvisualization.cpp index c72cbf5..a3f9554 100644 --- a/visualization/qmpvisualization.cpp +++ b/visualization/qmpvisualization.cpp @@ -115,18 +115,18 @@ void qmpVisualization::showThread() if(!font.loadTTF("/usr/share/fonts/truetype/freefont/FreeMono.ttf",fontsize)) if(!font.loadTTF("/usr/share/fonts/gnu-free/FreeMono.otf",fontsize)) if(!font.loadTTF((std::string(getenv("windir")?getenv("windir"):"")+"/Fonts/cour.ttf").c_str(),fontsize)) - printf("W: Font load failed.\n"); + fprintf(stderr,"W: Font load failed.\n"); if(!api->getOptionString("Visualization/font2").length()||!fonthdpi.loadTTF(api->getOptionString("Visualization/font2").c_str(),180)) if(!fonthdpi.loadTTF("/usr/share/fonts/truetype/freefont/FreeMono.ttf",180)) if(!fonthdpi.loadTTF("/usr/share/fonts/gnu-free/FreeMono.otf",180)) if(!fonthdpi.loadTTF((std::string(getenv("windir")?getenv("windir"):"")+"/Fonts/cour.ttf").c_str(),180)) - printf("W: Font load failed.\n"); + fprintf(stderr,"W: Font load failed.\n"); if(!api->getOptionString("Visualization/font1").length()||!font2.loadTTF(api->getOptionString("Visualization/font1").c_str(),fontsize)) if(!font2.loadTTF("/usr/share/fonts/truetype/wqy/wqy-microhei.ttc",fontsize)) if(!font2.loadTTF("/usr/share/fonts/wenquanyi/wqy-microhei/wqy-microhei.ttc",fontsize)) if(!font2.loadTTF((std::string(getenv("windir")?getenv("windir"):"")+"/Fonts/msyh.ttc").c_str(),fontsize)) if(!font2.loadTTF((std::string(getenv("windir")?getenv("windir"):"")+"/Fonts/segoeui.ttf").c_str(),fontsize)) - printf("W: Font load failed.\n"); + fprintf(stderr,"W: Font load failed.\n"); if(horizontal) { pos[0]=-20;pos[1]=45;pos[2]=0; |