aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa
diff options
context:
space:
mode:
authorChristian Schmitz <unknown>2022-01-13 11:55:37 +1100
committerChristian Schmitz <unknown>2022-01-13 11:55:37 +1100
commitea07cf27bb639d99e8e576c79c5a6733a0a7407c (patch)
tree4e52c26d5d5c9f0234619c0172caec64737c15b6 /cocoa
parentc1ebde5c28524747deef1ed2240641c1b2b8db38 (diff)
downloadscintilla-mirror-ea07cf27bb639d99e8e576c79c5a6733a0a7407c.tar.gz
Feature [feature-requests:#1425] Allow Scintilla to run if built without cursor images.
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/ScintillaView.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm
index db716c232..c75cdc1f8 100644
--- a/cocoa/ScintillaView.mm
+++ b/cocoa/ScintillaView.mm
@@ -1244,6 +1244,7 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor) {
waitCursor = [[NSCursor alloc] initWithImage: image hotSpot: NSMakePoint(2, 2)];
} else {
NSLog(@"Wait cursor is invalid.");
+ waitCursor = [NSCursor arrowCursor];
}
path = [bundle pathForResource: @"mac_cursor_flipped" ofType: @"tiff" inDirectory: nil];
@@ -1252,6 +1253,7 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor) {
reverseArrowCursor = [[NSCursor alloc] initWithImage: image hotSpot: NSMakePoint(15, 2)];
} else {
NSLog(@"Reverse arrow cursor is invalid.");
+ reverseArrowCursor = [NSCursor arrowCursor];
}
}
}