Previous 15994 Revisions Next

r2064 Saturday 22nd March, 2008 at 17:12:06 UTC by Nathan Woods
Removed some direct access of machine->devices[]
[src/mess]uimess.c

src/mess/uimess.c
r2063r2064
7878   }
7979
8080   /* run display routine for device */
81   if (machine->devices)
81   for (dev = mess_device_first_from_machine(machine); dev != NULL; dev = mess_device_next(dev))
8282   {
83      for (dev = machine->devices; dev->type < IO_COUNT; dev++)
83      if (dev->display != NULL)
8484      {
85         if (dev->display)
85         for (id = 0; id < device_count(dev->type); id++)
8686         {
87            for (id = 0; id < device_count(dev->type); id++)
88            {
89               mess_image *img = image_from_devtype_and_index(dev->type, id);
90               dev->display(img);
91            }
87            mess_image *img = image_from_devtype_and_index(dev->type, id);
88            dev->display(img);
9289         }
9390      }
9491   }
r2063r2064
116113      dst += sprintf(dst, "RAM: %s\n\n", ram_string(buf2, mess_ram_size));
117114   }
118115
119   for (dev = Machine->devices; dev->type < IO_COUNT; dev++)
116   for (dev = mess_device_first_from_machine(Machine); dev != NULL; dev = mess_device_next(dev))
120117   {
121118      for (id = 0; id < dev->count; id++)
122119      {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team