| 3179 | } |
| 3180 | |
| 3181 | static void |
| 3182 | DoOsEvt(EventRecord *theEvent) |
| 3183 | { |
| 3184 | WindowRef win; |
| 3185 | short code; |
| 3186 | |
| 3187 | if ((theEvent->message & 0xff000000) == 0xfa000000) { |
| 3188 | /* Mouse Moved */ |
| 3189 | |
| 3190 | code = FindWindow(theEvent->where, &win); |
| 3191 | if (code != inContent) { |
| 3192 | Rect r = { -1, -1, 2, 2 }; |
| 3193 | |
| 3194 | SetCursor(&qdarrow); |
| 3195 | OffsetRect(&r, theEvent->where.h, theEvent->where.v); |
| 3196 | RectRgn(gMouseRgn, &r); |
| 3197 | } else { |
| 3198 | #if 1 //!TARGET_API_MAC_CARBON |
| 3199 | int kind = GetWindowKind(win) - WIN_BASE_KIND; |
| 3200 | if (kind >= 0 && kind <= NHW_TEXT) { |
| 3201 | winCursorFuncs[kind](theEvent, win, gMouseRgn); |
| 3202 | } |
| 3203 | #endif |
| 3204 | } |
| 3205 | } |
| 3206 | } |
| 3207 | |
| 3208 | #endif /* !TARGET_API_MAC_CARBON */ |
| 3209 | |