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

« back to all changes in this revision

Viewing changes to src/mame/video/ms32.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:
281
281
 
282
282
        int tx, ty, sx, sy, flipx, flipy;
283
283
        int xsize, ysize, xzoom, yzoom;
284
 
        int code, attr, color, size, pri, pri_mask, trans;
 
284
        int code, attr, color, size, pri, pri_mask;
285
285
        gfx_element *gfx = machine->gfx[0];
286
286
 
287
287
        UINT32          *source = sprram_top;
335
335
                yzoom = 0x1000000/yzoom;
336
336
                xzoom = 0x1000000/xzoom;
337
337
 
338
 
                trans = TRANSPARENCY_PEN; // there are surely also shadows (see gametngk) but how they're enabled we don't know
 
338
                // there are surely also shadows (see gametngk) but how they're enabled we don't know
339
339
 
340
340
                if (flipscreen)
341
341
                {
346
346
                }
347
347
 
348
348
#if 0
349
 
if (input_code_pressed(KEYCODE_A) && (pri & 8)) color = rand();
350
 
if (input_code_pressed(KEYCODE_S) && (pri & 4)) color = rand();
351
 
if (input_code_pressed(KEYCODE_D) && (pri & 2)) color = rand();
352
 
if (input_code_pressed(KEYCODE_F) && (pri & 1)) color = rand();
 
349
if (input_code_pressed(machine, KEYCODE_A) && (pri & 8)) color = rand();
 
350
if (input_code_pressed(machine, KEYCODE_S) && (pri & 4)) color = rand();
 
351
if (input_code_pressed(machine, KEYCODE_D) && (pri & 2)) color = rand();
 
352
if (input_code_pressed(machine, KEYCODE_F) && (pri & 1)) color = rand();
353
353
#endif
354
354
 
355
355
                /* TODO: priority handling is completely wrong, but better than nothing */
363
363
                        pri_mask = 0xfe;
364
364
 
365
365
                gfx_element_set_source_clip(gfx, tx, xsize, ty, ysize);
366
 
                pdrawgfxzoom(bitmap, gfx,
 
366
                pdrawgfxzoom_transpen(bitmap, cliprect, gfx,
367
367
                                code,
368
368
                                color,
369
369
                                flipx, flipy,
370
370
                                sx,sy,
371
 
                                cliprect, trans, 0,
372
 
                                xzoom, yzoom, pri_mask);
 
371
                                xzoom, yzoom, machine->priority_bitmap,pri_mask, 0);
373
372
        }       /* end sprite loop */
374
373
}
375
374
 
480
479
        tilemap_set_scrolly(ms32_bg_tilemap, 0, scrolly);
481
480
 
482
481
 
483
 
        bitmap_fill(priority_bitmap,cliprect,0);
 
482
        bitmap_fill(screen->machine->priority_bitmap,cliprect,0);
484
483
 
485
484
        /* TODO: 0 is correct for gametngk, but break f1superb scrolling grid (text at
486
485
       top and bottom of the screen becomes black on black) */