aboutsummaryrefslogtreecommitdiff
path: root/visualization/qmpvirtualpiano3d.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-06 23:43:01 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-06 23:43:01 +0800
commit909cfe195ae2f6058a03875123f1e80f2a3fa0fa (patch)
tree9a6fcc0fa6390b8f503881999e4f08a8cd650c49 /visualization/qmpvirtualpiano3d.cpp
parent8da0f5c82fb91c2731cd2e90a875fe92c6557407 (diff)
downloadQMidiPlayer-909cfe195ae2f6058a03875123f1e80f2a3fa0fa.tar.xz
Use new SMELT rendering API for notes drawing.
Deinitialize classes in a correct order to avoid crashes. Add background image option. Add FPS-related options. Use QLineEdit instead of QPlainTextEdit for strings.
Diffstat (limited to 'visualization/qmpvirtualpiano3d.cpp')
-rw-r--r--visualization/qmpvirtualpiano3d.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/visualization/qmpvirtualpiano3d.cpp b/visualization/qmpvirtualpiano3d.cpp
index dca9086..bd40524 100644
--- a/visualization/qmpvirtualpiano3d.cpp
+++ b/visualization/qmpvirtualpiano3d.cpp
@@ -205,10 +205,10 @@ void qmpVirtualPiano3D::buildKeys()
makeVertex( BK_WIDTH/2,0,BK_HEIGHT+BK_BOTTOM,0xFF000000,0,0),
makeVertex( BK_WIDTH/2,BK_PRELEN,BK_HEIGHT+BK_BOTTOM,0xFF000000,0,0),
makeVertex(-BK_WIDTH/2,BK_PRELEN,BK_HEIGHT+BK_BOTTOM,0xFF000000,0,0),
- makeVertex(-BK_WIDTH/2,WK_PRELEN*0.95,BK_DBOTTOM+BK_BOTTOM,0xFF000000,0,0),
- makeVertex( BK_WIDTH/2,WK_PRELEN*0.95,BK_DBOTTOM+BK_BOTTOM,0xFF000000,0,0),
- makeVertex( BK_WIDTH/2,WK_PRELEN*0.95,BK_BOTTOM,0xFF000000,0,0),
- makeVertex(-BK_WIDTH/2,WK_PRELEN*0.95,BK_BOTTOM,0xFF000000,0,0),
+ makeVertex(-BK_WIDTH/2,WK_PRELEN*0.995,BK_DBOTTOM+BK_BOTTOM,0xFF000000,0,0),
+ makeVertex( BK_WIDTH/2,WK_PRELEN*0.995,BK_DBOTTOM+BK_BOTTOM,0xFF000000,0,0),
+ makeVertex( BK_WIDTH/2,WK_PRELEN*0.995,BK_BOTTOM,0xFF000000,0,0),
+ makeVertex(-BK_WIDTH/2,WK_PRELEN*0.995,BK_BOTTOM,0xFF000000,0,0),
makeVertex(-BK_WIDTH/2,0,BK_BOTTOM,0xFF000000,0,0),
makeVertex( BK_WIDTH/2,0,BK_BOTTOM,0xFF000000,0,0));
bk->addIndices(48,