Previous 15994 Revisions Next

r3871 Thursday 18th December, 2008 at 16:06:02 UTC by Dirk Best
Fixed compile issue in dl1416.c
[src/mess/video]dl1416.c dl1416.h

src/mess/video/dl1416.c
r3870r3871
122122
123123static DEVICE_START( dl1416 )
124124{
125   //const dl1416_interface *intf = device->inline_config;
126125   dl1416_state *dl1416 = get_safe_token(device);
127126
128127   /* validate arguments */
129   //assert(intf->type == DL1416B || intf->type == DL1416T);
128   assert(((const dl1416_interface *)(device->inline_config))->type >= DL1416B);
129   assert(((const dl1416_interface *)(device->inline_config))->type < MAX_DL1416_TYPES);
130130
131131   /* register for state saving */
132132   state_save_register_item(device->machine, "dl1416", device->tag, 0, dl1416->chip_enable);
r3870r3871
241241            digit = data & 1 ? SEG_CURSOR : chip->cursor_ram[offset];
242242
243243            /* Call update function */
244            intf->update(device, offset, digit);
244            if (intf->update)
245               intf->update(device, offset, digit);
245246
246247            break;
247248
r3870r3871
257258
258259               /* Call update function if we changed something */
259260               if (previous_digit != digit)
260                  intf->update(device, i, digit);
261                  if (intf->update)
262                     intf->update(device, i, digit);
261263            }
262264            break;
263265         }
r3870r3871
282284            chip->cursor_ram[offset] = digit;
283285
284286            /* Call update function */
285            intf->update(device, offset, digit);
287            if (intf->update)
288               intf->update(device, offset, digit);
286289         }
287290      }
288291   }
src/mess/video/dl1416.h
r3870r3871
2222enum
2323{
2424   DL1416B,
25   DL1416T
25   DL1416T,
26   MAX_DL1416_TYPES
2627};
2728
2829

Previous 15994 Revisions Next


© 1998-2018 The MESS Team