Skip to content

Commit 0b2421e

Browse files
authored
Merge pull request #363 from brychcy/master
#88 replace NSCopyBits which is deprecated
2 parents 51e4114 + 418b98e commit 0b2421e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/MacVim/MMCoreTextView.m

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,10 +1412,8 @@ - (void)drawString:(const UniChar *)chars length:(UniCharCount)length
14121412

14131413
- (void)scrollRect:(NSRect)rect lineCount:(int)count
14141414
{
1415-
NSPoint destPoint = rect.origin;
1416-
destPoint.y -= count * cellSize.height;
1417-
1418-
NSCopyBits(0, rect, destPoint);
1415+
NSSize delta={0, -count * cellSize.height};
1416+
[self scrollRect:rect by:delta];
14191417
}
14201418

14211419
- (void)deleteLinesFromRow:(int)row lineCount:(int)count

0 commit comments

Comments
 (0)