comparison highlight.c @ 30:630b6733e492 src

Some more cleanups. Improve button passing.
author jcdutton
date Wed, 24 Apr 2002 00:47:46 +0000
parents c3c8b98d7e95
children 8b08ee66cbff
comparison
equal deleted inserted replaced
29:c3c8b98d7e95 30:630b6733e492
166 btni_t *button_ptr; 166 btni_t *button_ptr;
167 fprintf(stderr,"Button get_highlight_area %i\n", button); 167 fprintf(stderr,"Button get_highlight_area %i\n", button);
168 168
169 /* Set the highlight SPRM if the passed button was valid*/ 169 /* Set the highlight SPRM if the passed button was valid*/
170 if((button <= 0) || (button > nav_pci->hli.hl_gi.btn_ns)) { 170 if((button <= 0) || (button > nav_pci->hli.hl_gi.btn_ns)) {
171 fprintf(stderr,"Unable to select button number %i as it doesn't exist", 171 fprintf(stderr,"Unable to select button number %i as it doesn't exist\n",
172 button); 172 button);
173 return S_ERR; 173 return S_ERR;
174 } 174 }
175 button_ptr = &nav_pci->hli.btnit[button-1]; 175 button_ptr = &nav_pci->hli.btnit[button-1];
176 176