jcs
/detritus
/amendments
/47
main: Load finger cursor
jcs made amendment 47 about 1 year ago
--- main.c Mon Nov 18 21:13:16 2024
+++ main.c Thu Nov 21 11:47:00 2024
@@ -31,6 +31,8 @@ const struct default_bookmark default_bookmarks[] = {
};
MenuHandle apple_menu, file_menu, edit_menu, bookmarks_menu;
+Cursor finger_cursor;
+
bool quitting = false;
bool handle_menu(long menu_id);
@@ -43,6 +45,8 @@ main(void)
EventRecord event;
WindowPtr event_win;
GrafPtr old_port;
+ RgnHandle mouse_region;
+ CursHandle cursh;
struct focusable *found_focusable;
short event_in, n;
char key;
@@ -77,12 +81,17 @@ main(void)
settings_load();
menu_load_bookmarks();
+ cursh = GetCursor(CURSOR_FINGER_ID);
+ if (cursh == NULL)
+ panic("Can't find my finger!");
+ finger_cursor = **cursh;
+
/* browser before scsi so the user can look at something while we poll */
browser_init();
scsi_find_tls();
while (!quitting) {
- WaitNextEvent(everyEvent, &event, 5L, 0L);
+ WaitNextEvent(everyEvent, &event, 5L, NULL);
switch (event.what) {
case nullEvent: