~ubuntu-branches/ubuntu/lucid/sdlmame/lucid

« back to all changes in this revision

Viewing changes to src/mame/drivers/mpu4drvr.c

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Falco
  • Date: 2009-11-03 17:10:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091103171015-6hop4ory5lxnumpn
Tags: 0.135-0ubuntu1
* New upstream release - Closes (LP: #403212)
* debian/watch: unstable releases are no longer detected
* mame.ini: added the cheat subdirectories to cheatpath so zipped
  cheatfiles will be searched too
* renamed crsshair subdirectory to crosshair to reflect upstream change
* mame.ini: renamed references to crosshair subdirectory (see above)

Show diffs side-by-side

added added

removed removed

Lines of Context:
524
524
                        colattr = tiledat >>12;
525
525
                        tiledat &= 0x0fff;
526
526
 
527
 
                        drawgfx(bitmap,screen->machine->gfx[gfxregion],tiledat,colattr,0,0,x*8,y*8,cliprect,TRANSPARENCY_NONE,0);
 
527
                        drawgfx_opaque(bitmap,cliprect,screen->machine->gfx[gfxregion],tiledat,colattr,0,0,x*8,y*8);
528
528
 
529
529
                        count++;
530
530
                }
1379
1379
 
1380
1380
 
1381
1381
/* machine start (called only once) */
1382
 
MACHINE_START( mpu4_vid )
 
1382
static MACHINE_START( mpu4_vid )
1383
1383
{
1384
1384
        mpu4_config_common(machine);
1385
1385
 
1625
1625
                {
1626
1626
                        int tile = dealem_videoram[count + 0x1000] | (dealem_videoram[count] << 8);
1627
1627
                        count++;
1628
 
                        drawgfx(bitmap,screen->machine->gfx[0],tile,0,0,0,x * 8,y * 8,cliprect,TRANSPARENCY_NONE,0);
 
1628
                        drawgfx_opaque(bitmap,cliprect,screen->machine->gfx[0],tile,0,0,0,x * 8,y * 8);
1629
1629
                }
1630
1630
        }
1631
1631
 
1633
1633
}
1634
1634
 
1635
1635
 
1636
 
static MC6845_ON_VSYNC_CHANGED( dealem_vsync_changed )
 
1636
static WRITE_LINE_DEVICE_HANDLER( dealem_vsync_changed )
1637
1637
{
1638
 
        cputag_set_input_line(device->machine, "maincpu", INPUT_LINE_NMI, vsync);
 
1638
        cputag_set_input_line(device->machine, "maincpu", INPUT_LINE_NMI, state);
1639
1639
}
1640
1640
 
1641
1641
/*************************************
1646
1646
 
1647
1647
static const mc6845_interface hd6845_intf =
1648
1648
{
1649
 
        "screen",                                       /* screen we are acting on */
1650
 
        8,                                                      /* number of pixels per video memory address */
1651
 
        NULL,                                           /* before pixel update callback */
1652
 
        NULL,                                           /* row update callback */
1653
 
        NULL,                                           /* after pixel update callback */
1654
 
        NULL,                                           /* callback for display state changes */
1655
 
        NULL,                                           /* HSYNC callback */
1656
 
        dealem_vsync_changed            /* VSYNC callback */
 
1649
        "screen",                                                       /* screen we are acting on */
 
1650
        8,                                                                      /* number of pixels per video memory address */
 
1651
        NULL,                                                           /* before pixel update callback */
 
1652
        NULL,                                                           /* row update callback */
 
1653
        NULL,                                                           /* after pixel update callback */
 
1654
        DEVCB_NULL,                                                     /* callback for display state changes */
 
1655
        DEVCB_NULL,                                                     /* callback for cursor state changes */
 
1656
        DEVCB_NULL,                                                     /* HSYNC callback */
 
1657
        DEVCB_LINE(dealem_vsync_changed),       /* VSYNC callback */
 
1658
        NULL                                                            /* update address callback */
1657
1659
};
1658
1660
 
1659
1661
 
1828
1830
        ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00  )
1829
1831
        ROM_LOAD( "zenndlem.u6",        0x8000, 0x8000,  CRC(571e5c05) SHA1(89b4c331407a04eae34bb187b036791e0a671533) )
1830
1832
 
1831
 
        ROM_REGION( 0x10000, "gfx1", ROMREGION_DISPOSE )
 
1833
        ROM_REGION( 0x10000, "gfx1", 0 )
1832
1834
        ROM_LOAD( "zenndlem.u24",       0x0000, 0x10000, CRC(3a1950c4) SHA1(7138346d4e8b3cffbd9751b4d7ebd367b9ad8da9) )    /* text layer */
1833
1835
 
1834
1836
        ROM_REGION( 0x020, "proms", 0 )
2053
2055
        ROM_LOAD( "meter-zero.p1",  0x8000, 0x8000,  CRC(e74297e5) SHA1(49a2cc85eda14199975ec37a794b685c839d3ab9))
2054
2056
ROM_END
2055
2057
 
2056
 
DRIVER_INIT (connect4)
 
2058
static DRIVER_INIT (connect4)
2057
2059
{
2058
2060
        led_extend=1;
2059
2061
}