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

« back to all changes in this revision

Viewing changes to src/mame/video/gaelco3d.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:
456
456
{
457
457
        int x, y, ret;
458
458
 
459
 
        if (DISPLAY_TEXTURE && (input_code_pressed(KEYCODE_Z) || input_code_pressed(KEYCODE_X)))
 
459
        if (DISPLAY_TEXTURE && (input_code_pressed(screen->machine, KEYCODE_Z) || input_code_pressed(screen->machine, KEYCODE_X)))
460
460
        {
461
461
                static int xv = 0, yv = 0x1000;
462
462
                UINT8 *base = gaelco3d_texture;
463
463
                int length = gaelco3d_texture_size;
464
464
 
465
 
                if (input_code_pressed(KEYCODE_X))
 
465
                if (input_code_pressed(screen->machine, KEYCODE_X))
466
466
                {
467
467
                        base = gaelco3d_texmask;
468
468
                        length = gaelco3d_texmask_size;
469
469
                }
470
470
 
471
 
                if (input_code_pressed(KEYCODE_LEFT) && xv >= 4)
 
471
                if (input_code_pressed(screen->machine, KEYCODE_LEFT) && xv >= 4)
472
472
                        xv -= 4;
473
 
                if (input_code_pressed(KEYCODE_RIGHT) && xv < 4096 - 4)
 
473
                if (input_code_pressed(screen->machine, KEYCODE_RIGHT) && xv < 4096 - 4)
474
474
                        xv += 4;
475
475
 
476
 
                if (input_code_pressed(KEYCODE_UP) && yv >= 4)
 
476
                if (input_code_pressed(screen->machine, KEYCODE_UP) && yv >= 4)
477
477
                        yv -= 4;
478
 
                if (input_code_pressed(KEYCODE_DOWN) && yv < 0x40000)
 
478
                if (input_code_pressed(screen->machine, KEYCODE_DOWN) && yv < 0x40000)
479
479
                        yv += 4;
480
480
 
481
481
                for (y = cliprect->min_y; y <= cliprect->max_y; y++)