Fix cursor display

This commit is contained in:
Matthias Neeracher 2011-09-06 03:26:08 +02:00
parent 6e44bc5264
commit d58f204907
2 changed files with 3 additions and 3 deletions

View File

@ -885,8 +885,8 @@ const float kSemiFloor = -1.0f*kLineH;
fClickMode = ' ';
else
fClickMode = 'k';
break;
[self setNeedsDisplay:YES];
break;
}
}

View File

@ -77,7 +77,7 @@
cursorX = [self noteXInMeasure:measure at:at];
if (visual == kCursorExtend) {
cursorY = [self noteYInGrid:vertPos];
cursorY = [self noteYInMeasure:measure withGrid:vertPos];
cursorElt = kMusicExtendCursor;
} else {
switch (mode) {
@ -92,7 +92,7 @@
cursorElt = kMusicRestCursor;
break;
case 'k':
cursorY = [self noteYInGrid:vertPos];
cursorY = [self noteYInMeasure:measure withGrid:vertPos] - kNoteY;
cursorElt = kMusicKillCursor;
break;
}