- commit
- e022966a4df49d79a56b95ec31392c3452132138
- parent
- f589618cb28cde5e3f0d277860b347a9db916274
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2019-12-26 08:18
Gardening
Diffstat
| M | src/gui/RetimerMainFrame.cpp | 24 | ++++++++++++------------ |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/RetimerMainFrame.cpp b/src/gui/RetimerMainFrame.cpp
@@ -209,26 +209,26 @@ void RetimerMainFrame::paint(wxDC* dc) {
209 209 }
210 210 curve->_update = false;
211 211 }
212 -1 bdc.DrawBitmap(waveform,0,0,false);
-1 212 bdc.DrawBitmap(waveform, 0, 0, false);
213 213 // marker
214 214 bdc.SetPen(*penMarker);
215 215 for (int i = 0; i < curve->getMarkerLength(); ++i) {
216 -1 int n = int(curve->getMarker(i) * (width - 1));
217 -1 bdc.DrawLine(n, 0, n, height);
218 -1 wxPoint ps[3];
219 -1 wxPoint p0(n - MARKERWIDTH / 2, 0);
220 -1 ps[0] = p0;
221 -1 wxPoint p1(n + MARKERWIDTH / 2, 0);
222 -1 ps[1] = p1;
223 -1 wxPoint p2(n + 0, MARKERWIDTH * 4 / 5);
224 -1 ps[2] = p2;
225 -1 bdc.DrawPolygon(3, ps);
-1 216 int n = int(curve->getMarker(i) * (width - 1));
-1 217 bdc.DrawLine(n, 0, n, height);
-1 218 wxPoint ps[3];
-1 219 wxPoint p0(n - MARKERWIDTH / 2, 0);
-1 220 ps[0] = p0;
-1 221 wxPoint p1(n + MARKERWIDTH / 2, 0);
-1 222 ps[1] = p1;
-1 223 wxPoint p2(n + 0, MARKERWIDTH * 4 / 5);
-1 224 ps[2] = p2;
-1 225 bdc.DrawPolygon(3, ps);
226 226 }
227 227 // seeker
228 228 bdc.SetPen(*penSeeker);
229 229 int seek = int(curve->getSeeker() * (width - 1));
230 230 bdc.DrawLine(seek, 0, seek, height);
231 -1 //beats
-1 231 // beats
232 232 bdc.SetPen(*penMarker);
233 233 int step = int(width / curve->getBars() / curve->getBeatResolution());
234 234 for (int i = 0; i < width && step != 0; i += step) {