Mercurial > libdvdnav.hg
changeset 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 | bdc6b26da039 |
children | eef7478ffd45 |
files | highlight.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;