mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 19:23:59 +00:00
Fix cursor display
This commit is contained in:
parent
6e44bc5264
commit
d58f204907
|
@ -885,8 +885,8 @@ const float kSemiFloor = -1.0f*kLineH;
|
||||||
fClickMode = ' ';
|
fClickMode = ' ';
|
||||||
else
|
else
|
||||||
fClickMode = 'k';
|
fClickMode = 'k';
|
||||||
break;
|
|
||||||
[self setNeedsDisplay:YES];
|
[self setNeedsDisplay:YES];
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
|
|
||||||
cursorX = [self noteXInMeasure:measure at:at];
|
cursorX = [self noteXInMeasure:measure at:at];
|
||||||
if (visual == kCursorExtend) {
|
if (visual == kCursorExtend) {
|
||||||
cursorY = [self noteYInGrid:vertPos];
|
cursorY = [self noteYInMeasure:measure withGrid:vertPos];
|
||||||
cursorElt = kMusicExtendCursor;
|
cursorElt = kMusicExtendCursor;
|
||||||
} else {
|
} else {
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
|
@ -92,7 +92,7 @@
|
||||||
cursorElt = kMusicRestCursor;
|
cursorElt = kMusicRestCursor;
|
||||||
break;
|
break;
|
||||||
case 'k':
|
case 'k':
|
||||||
cursorY = [self noteYInGrid:vertPos];
|
cursorY = [self noteYInMeasure:measure withGrid:vertPos] - kNoteY;
|
||||||
cursorElt = kMusicKillCursor;
|
cursorElt = kMusicKillCursor;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user