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 = ' '; fClickMode = ' ';
else else
fClickMode = 'k'; fClickMode = 'k';
break;
[self setNeedsDisplay:YES]; [self setNeedsDisplay:YES];
break;
} }
} }

View File

@ -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;
} }