Example #1
0
/* actually debugging purpose, it will be converted to the artwork system at some point. */
static SCREEN_UPDATE_IND16( kungfur )
{
	kungfur_state *state = screen.machine().driver_data<kungfur_state>();
//  popmessage("%02x %02x %02x %02x %02x %02x",io_data[0],io_data[1],io_data[2],io_data[3],io_data[4],io_data[5]);
	int i;

	for(i=0;i<16;i++)
		draw_led(bitmap,  (i*8)+2, 100, state->m_led[i]);

	return 0;
}
Example #2
0
static void mk1_draw_9segment(mame_bitmap *bitmap,int value, int x, int y)
{
	draw_led(bitmap, led, value, x, y);
}
Example #3
0
File: draw_line.c Project: hfs/afd
/*######################### draw_line_status() ##########################*/
void
draw_line_status(int pos, signed char delta)
{
   int  column,
        x, y;
   char line[MAX_COLUMN_LENGTH + 1];

   /* First locate position of x and y. */
   locate_xy_column(pos, &x, &y, &column);

#ifdef _DEBUG
   (void)printf("Drawing line %d %d  x = %d  y = %d\n",
                pos, counter++, x, y);
#endif

   if ((connect_data[pos].inverse > OFF) && (delta >= 0))
   {
      if (connect_data[pos].inverse == ON)
      {
         attrset(COLOR_PAIR(NORMAL_BG));
      }
      else
      {
         attrset(COLOR_PAIR(LOCKED_BG));
      }
   }
   else
   {
      attrset(COLOR_PAIR(DEFAULT_BG));
   }
   memset(line, ' ', line_length[column]);
   line[line_length[column]] = '\0';
   mvaddstr(y, x, line);

   /* Write destination identifier to screen. */
   draw_dest_identifier(pos, x, y);

   if (line_style & SHOW_LEDS)
   {
      /* Draw debug led. */
      draw_debug_led(pos, x, y);

      /* Draw status LED's. */
      draw_led(pos, 0, x, y);
      draw_led(pos, 1, x + 1 + LED_SPACING, y);
   }

   if (line_style & SHOW_JOBS)
   {
      int i;

      /* Draw status button for each parallel transfer. */
      for (i = 0; i < fsa[pos].allowed_transfers; i++)
      {
         draw_proc_stat(pos, i, x, y);
      }
   }

   /* Print information for number of files to be send (nf), */
   /* total file size (tfs), transfer rate (tr) and error    */
   /* counter (ec).                                          */
   if (line_style & SHOW_CHARACTERS)
   {
      draw_chars(pos, NO_OF_FILES, x, y, column);
      draw_chars(pos, TOTAL_FILE_SIZE, x + (5 * glyph_width), y, column);
      draw_chars(pos, TRANSFER_RATE, x + (10 * glyph_width), y, column);
      draw_chars(pos, ERROR_COUNTER, x + (15 * glyph_width), y, column);
   }

   return;
}
Example #4
0
static void mk2_draw_led(mame_bitmap *bitmap,INT16 color, int x, int y)
{
	draw_led(bitmap, radius_2_led, color, x, y);
}