comparison highlight.c @ 227:10af49ee5118 src

Fix a bug. We pass pci_t as a function param, so why bother looking at an out of sync this-> version of it.
author jcdutton
date Tue, 20 Jan 2004 01:22:24 +0000
parents ba43bdbb07e8
children bd734ab914d0
comparison
equal deleted inserted replaced
226:bdc6b26da039 227:10af49ee5118
477 best = 0; 477 best = 0;
478 dist = 0x08000000; /* >> than (720*720)+(567*567); */ 478 dist = 0x08000000; /* >> than (720*720)+(567*567); */
479 479
480 /* Loop through all buttons */ 480 /* Loop through all buttons */
481 for(button = 1; button <= pci->hli.hl_gi.btn_ns; button++) { 481 for(button = 1; button <= pci->hli.hl_gi.btn_ns; button++) {
482 btni_t *button_ptr = &(this->pci.hli.btnit[button-1]); 482 btni_t *button_ptr = &(pci->hli.btnit[button-1]);
483 483
484 if((x >= button_ptr->x_start) && (x <= button_ptr->x_end) && 484 if((x >= button_ptr->x_start) && (x <= button_ptr->x_end) &&
485 (y >= button_ptr->y_start) && (y <= button_ptr->y_end)) { 485 (y >= button_ptr->y_start) && (y <= button_ptr->y_end)) {
486 mx = (button_ptr->x_start + button_ptr->x_end)/2; 486 mx = (button_ptr->x_start + button_ptr->x_end)/2;
487 my = (button_ptr->y_start + button_ptr->y_end)/2; 487 my = (button_ptr->y_start + button_ptr->y_end)/2;
488 dx = mx - x; 488 dx = mx - x;