Previous 15994 Revisions Next

r5975 Monday 5th October, 2009 at 13:54:56 UTC by Dirk Best
[MC6847] Fixed bug #1868
[src/mess/video]m6847.c

src/mess/video/m6847.c
r5974r5975
12291229         /* has the border color changed? */
12301230         attrs = update_attributes(mc6847);
12311231
1232         if (attrs != mc6847->attrs[scanline])
1232         /* commenting out cause it breaks the coco3 border,
1233          * the whole 'attr' handling needs to be rewritten anyway
1234         if (attrs != mc6847->attrs[scanline]) */
12331235         {
12341236            mc6847->dirty = TRUE;
12351237            mc6847->attrs[scanline] = attrs;
r5974r5975
12951297   if (LOG_HS)
12961298      logerror("hs_fall(): time=%s\n", attotime_string(timer_get_time(machine), ATTOTIME_STRING_PRECISION));
12971299
1298   mc6847->hs = CLEAR_LINE;
1299   devcb_call_write_line(&mc6847->out_hs_func, CLEAR_LINE);
1300   mc6847->hs = ASSERT_LINE;
1301   devcb_call_write_line(&mc6847->out_hs_func, mc6847->hs);
13001302}
13011303
13021304static TIMER_CALLBACK( hs_rise )
r5974r5975
13111313   timer_adjust_oneshot(mc6847->hs_fall_timer,
13121314      attotime_make(0, mc6847->horizontal_sync_period), 0);
13131315
1314   mc6847->hs = ASSERT_LINE;
1315   devcb_call_write_line(&mc6847->out_hs_func, ASSERT_LINE);
1316   mc6847->hs = CLEAR_LINE;
1317   devcb_call_write_line(&mc6847->out_hs_func, mc6847->hs);
13161318
13171319   prepare_scanline(machine, mc6847, 0);
13181320}
r5974r5975
17761778   assert(device->static_config != NULL);
17771779   assert(device->inline_config != NULL);
17781780
1779
1780
17811781   /* identify proper M6847 variant */
17821782   assert(cfg->type < ARRAY_LENGTH(variants));
17831783   v = &variants[cfg->type];
r5974r5975
19141914      /* --- the following bits of info are returned as 64-bit signed integers --- */
19151915      case DEVINFO_INT_TOKEN_BYTES:         info->i = sizeof(mc6847_state);               break;
19161916      case DEVINFO_INT_INLINE_CONFIG_BYTES:   info->i = sizeof(mc6847_config);            break;
1917      case DEVINFO_INT_CLASS:               info->i = DEVICE_CLASS_OTHER;               break;
1917      case DEVINFO_INT_CLASS:               info->i = DEVICE_CLASS_VIDEO;               break;
19181918
19191919      /* --- the following bits of info are returned as pointers to data or functions --- */
19201920      case DEVINFO_FCT_START:               info->start = DEVICE_START_NAME(mc6847);      break;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team