# HG changeset patch # User jcdutton # Date 1074561744 0 # Node ID 10af49ee511880a75e40dad463eef70067a9a91d # Parent bdc6b26da0390519780f4e7b2f776be084a5c2fa Fix a bug. We pass pci_t as a function param, so why bother looking at an out of sync this-> version of it. diff -r bdc6b26da039 -r 10af49ee5118 highlight.c --- a/highlight.c Mon Jan 12 19:29:53 2004 +0000 +++ b/highlight.c Tue Jan 20 01:22:24 2004 +0000 @@ -479,8 +479,8 @@ /* Loop through all buttons */ for(button = 1; button <= pci->hli.hl_gi.btn_ns; button++) { - btni_t *button_ptr = &(this->pci.hli.btnit[button-1]); - + btni_t *button_ptr = &(pci->hli.btnit[button-1]); + if((x >= button_ptr->x_start) && (x <= button_ptr->x_end) && (y >= button_ptr->y_start) && (y <= button_ptr->y_end)) { mx = (button_ptr->x_start + button_ptr->x_end)/2;