aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-20 23:51:15 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-20 23:51:15 +0800
commit1ec23952dd7c022e11afbb93d93be1bac5c94081 (patch)
treec38c321d2374c72f4f607bd3742a59188dae1e60 /core
parent78b384662f484e946a6a17c96e6c309df0c039da (diff)
downloadQMidiPlayer-1ec23952dd7c022e11afbb93d93be1bac5c94081.tar.xz
Scale GUI correctly on a high DPI device.
Fix building for Windows. RC-bugs still exist.
Diffstat (limited to 'core')
-rw-r--r--core/qmpmidiplay.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/qmpmidiplay.cpp b/core/qmpmidiplay.cpp
index 63c4dda..855ccb7 100644
--- a/core/qmpmidiplay.cpp
+++ b/core/qmpmidiplay.cpp
@@ -211,7 +211,7 @@ void CMidiPlayer::playEvents()
if(resumed)resumed=false;
else
if(sendtime.count()<(midiFile->getEvent(tceptr)->time-ct)*dpt)
-#if 0
+#if _WIN32
w32usleep((midiFile->getEvent(tceptr)->time-ct)*(dpt/1000));
#else
std::this_thread::sleep_for(std::chrono::nanoseconds((midiFile->getEvent(tceptr)->time-ct)*dpt-sendtime.count()));