~ubuntu-branches/ubuntu/precise/mame/precise-proposed

« back to all changes in this revision

Viewing changes to src/mame/video/avgdvg.c

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Falco
  • Date: 2010-08-01 23:18:31 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100801231831-9dj2qbsynutixsoe
Tags: 0.139-0ubuntu1
* New upstream release (LP: #612070)
* debian/contrib/manpages: removed, accepted upstream
* debian/patches/:
  - deprecated_gtk_macros: removed, fixed upstream
  - missing_newline.patch: removed, fixed upstream
  - typos.patch: removed, fixed upstream
* debian/rules: new variables SYMLEVEL and DUMPSYM
* mame-tools: ldplayer removed, possibly for good (FTBFS upstream)

Show diffs side-by-side

added added

removed removed

Lines of Context:
510
510
static int quantum_st2st3(vgdata *vg)
511
511
{
512
512
        /* Quantum doesn't decode latch0 or latch2 but ST2 and ST3 are fed
513
 
     * into the address controller which incremets the PC
 
513
     * into the address controller which increments the PC
514
514
     */
515
515
        vg->pc++;
516
516
        return 0;
548
548
        /*
549
549
     * Battle Zone has clipping hardware. We need to remember the
550
550
     * position of the beam when the analog switches hst or lst get
551
 
     * turened off.
 
551
     * turned off.
552
552
     */
553
553
 
554
554
        if (vg->hst == 0)
834
834
{
835
835
        if ((OP2 == 0) && (vg->dvy12 == 0))
836
836
        {
 
837
                /* Contrary to previous documentation in MAME,
 
838
        Tempest does not have the vg->enspkl bit. */
837
839
                if (vg->dvy & 0x800)
838
840
                        vg->color = vg->dvy & 0xf;
839
841
                else
1488
1490
 
1489
1491
static VIDEO_START( avg_common )
1490
1492
{
1491
 
        const rectangle *visarea = video_screen_get_visible_area(machine->primary_screen);
 
1493
        const rectangle &visarea = machine->primary_screen->visible_area();
1492
1494
 
1493
1495
        vg = &vgd;
1494
1496
        vg->machine = machine;
1495
1497
 
1496
 
        xmin = visarea->min_x;
1497
 
        ymin = visarea->min_y;
1498
 
        xmax = visarea->max_x;
1499
 
        ymax = visarea->max_y;
 
1498
        xmin = visarea.min_x;
 
1499
        ymin = visarea.min_y;
 
1500
        xmax = visarea.max_x;
 
1501
        ymax = visarea.max_y;
1500
1502
 
1501
1503
        xcenter = ((xmax - xmin) / 2) << 16;
1502
1504
        ycenter = ((ymax - ymin) / 2) << 16;
1520
1522
 
1521
1523
VIDEO_START( dvg )
1522
1524
{
1523
 
        const rectangle *visarea = video_screen_get_visible_area(machine->primary_screen);
 
1525
        const rectangle &visarea = machine->primary_screen->visible_area();
1524
1526
 
1525
1527
        vgc = &dvg_default;
1526
1528
        vg = &vgd;
1527
1529
        vg->machine = machine;
1528
1530
 
1529
 
        xmin = visarea->min_x;
1530
 
        ymin = visarea->min_y;
 
1531
        xmin = visarea.min_x;
 
1532
        ymin = visarea.min_y;
1531
1533
 
1532
1534
        vg_halt_timer = timer_alloc(machine, vg_set_halt_callback, NULL);
1533
1535
        vg_run_timer = timer_alloc(machine, run_state_machine, NULL);