comparison highlight.c @ 3:328eadb3f37e src

Added initial example programs directory and make sure all debug/error output goes to stderr.
author richwareham
date Mon, 01 Apr 2002 18:56:28 +0000
parents 3ddf0eaece51
children 6f0fb88d1463
comparison
equal deleted inserted replaced
2:80d67d4570b7 3:328eadb3f37e
180 printerrf("Unable to select button number %i as self state bad", 180 printerrf("Unable to select button number %i as self state bad",
181 button); 181 button);
182 return S_ERR; 182 return S_ERR;
183 } 183 }
184 184
185 printf("Button select %i\n", button); 185 fprintf(stderr,"Button select %i\n", button);
186 186
187 /* Set the highlight SPRM if the passed button was valid*/ 187 /* Set the highlight SPRM if the passed button was valid*/
188 if((button <= 0) || (button > self->pci.hli.hl_gi.btn_ns)) { 188 if((button <= 0) || (button > self->pci.hli.hl_gi.btn_ns)) {
189 printerrf("Unable to select button number %i as it doesn't exist", 189 printerrf("Unable to select button number %i as it doesn't exist",
190 button); 190 button);
212 } 212 }
213 self->hli_pts = self->pci.hli.hl_gi.hli_s_ptm; 213 self->hli_pts = self->pci.hli.hl_gi.hli_s_ptm;
214 self->hli_buttonN = button; 214 self->hli_buttonN = button;
215 self->highlight_changed = 1; 215 self->highlight_changed = 1;
216 #ifdef BUTTON_TESTING 216 #ifdef BUTTON_TESTING
217 printf("highlight.c:Highlight area is (%u,%u)-(%u,%u), display = %i, button = %u\n", 217 fprintf(stderr,"highlight.c:Highlight area is (%u,%u)-(%u,%u), display = %i, button = %u\n",
218 button_ptr->x_start, button_ptr->y_start, 218 button_ptr->x_start, button_ptr->y_start,
219 button_ptr->x_end, button_ptr->y_end, 219 button_ptr->x_end, button_ptr->y_end,
220 1, 220 1,
221 button); 221 button);
222 #endif 222 #endif