components/prboom/st_lib.c
//
// STlib_initNum()
//
// Initializes an st_number_t widget
//
// Passed the widget, its position, the patches for the digits, a pointer
// to the value displayed, a pointer to the on/off control, and the width
// Returns nothing
//


Passed the widget, its position, the patches for the digits, a pointer
to the value displayed, a pointer to the on/off control, and the width
Returns nothing
Passed the widget its position the patches for the digits a pointer to the value displayed a pointer to the on / off control and the width Returns nothing
void STlib_initNum
( st_number_t* n,
  int x,
  int y,
  const patchnum_t* pl,
  int* num,
  boolean* on,
  int     width )
{
  n->x  = x;
  n->y  = y;
  n->oldnum = 0;
  n->width  = width;
  n->num  = num;
  n->on = on;
  n->p  = pl;
}
void STlib_initNum ( st_number_t * n , int x , int y , const patchnum_t * pl , int * num , boolean * on , int width ) { n -> x = x ; n -> y = y ; n -> oldnum = 0 ; n -> width = width ; n -> num = num ; n -> on = on ; n -> p = pl ; }
STlib_initNum()
Initializes an st_number_t widget
STlib_initNum () Initializes an st_number_t widget