mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-18 00:52:33 +00:00
Use in_display_segment(...) macro where possible.
This commit is contained in:
parent
a6b8b65b5b
commit
7b67b3f79f
@ -527,7 +527,7 @@ LispPTR n_new_cursorin(DLword *baseaddr, int dx, int dy, int w, int h) {
|
||||
init_kbd_startup; /* MUST START KBD FOR INIT BEFORE FIRST BITBLT */
|
||||
#endif
|
||||
|
||||
if ((DisplayRegion68k <= baseaddr) && (baseaddr <= DISP_MAX_Address)) {
|
||||
if (in_display_segment(baseaddr)) {
|
||||
if ((dx < MOUSEXR) && (dx + w > MOUSEXL) && (dy < MOUSEYH) && (dy + h > MOUSEYL))
|
||||
return (T);
|
||||
else
|
||||
@ -550,7 +550,7 @@ LispPTR n_new_cursorin(DLword *baseaddr, int dx, int dy, int w, int h) {
|
||||
#endif
|
||||
|
||||
if (MonoOrColor == MONO_SCREEN) { /* in MONO screen */
|
||||
if ((DisplayRegion68k <= baseaddr) && (baseaddr <= DISP_MAX_Address)) {
|
||||
if (in_display_segment(baseaddr)) {
|
||||
if ((dx < MOUSEXR) && (dx + w > MOUSEXL) && (dy < MOUSEYH) && (dy + h > MOUSEYL)) {
|
||||
return (T);
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user