Previous 15994 Revisions Next

r1947 Tuesday 11th March, 2008 at 22:20:51 UTC by Wilbert Pol
Removed deprecat.h dependency from video/astrocde.c
[src/mess/includes]astrocde.h
[src/mess/machine]astrocde.c
[src/mess/video]astrocde.c

src/mess/includes/astrocde.h
r1946r1947
3737WRITE8_HANDLER ( astrocade_colour_block_w );
3838WRITE8_HANDLER ( astrocade_colour_split_w );
3939
40void astrocade_copy_line(int line);
40void astrocade_copy_line(running_machine *machine, int line);
4141
4242
4343#endif /* ASTROCDE_H_ */
src/mess/video/astrocde.c
r1946r1947
1111***************************************************************************/
1212
1313#include "driver.h"
14#include "deprecat.h"
1514#include "cpu/z80/z80.h"
1615#include "includes/astrocde.h"
1716
r1946r1947
341340   magic_expand_flipflop ^= 1;
342341}
343342
344void astrocade_copy_line(int line)
343void astrocade_copy_line(running_machine *machine, int line)
345344{
346345   /* Copy one line to bitmap, using current colour register settings */
347346
r1946r1947
379378
380379         if (astrocade_mode == 0)
381380         {
382            *BITMAP_ADDR16(tmpbitmap, line, 2*x+0) = Machine->pens[Colour[color]];
383            *BITMAP_ADDR16(tmpbitmap, line, 2*x+1) = Machine->pens[Colour[color]];
381            *BITMAP_ADDR16(tmpbitmap, line, 2*x+0) = machine->pens[Colour[color]];
382            *BITMAP_ADDR16(tmpbitmap, line, 2*x+1) = machine->pens[Colour[color]];
384383         }
385384         else
386            *BITMAP_ADDR16(tmpbitmap, line, x) = Machine->pens[Colour[color]];
385            *BITMAP_ADDR16(tmpbitmap, line, x) = machine->pens[Colour[color]];
387386
388387         data >>= 2;
389388      }
src/mess/machine/astrocde.c
r1946r1947
5959   
6060   /* draw if we are in the visable area */
6161   if (scanline < machine->screen[0].visarea.max_y)
62      astrocade_copy_line(scanline);
62      astrocade_copy_line(machine, scanline);
6363   
6464   /* scanline interrupt? */
6565   if (screen_interrupts_enabled && (screen_interrupt_mode == 0) && (scanline == NextScanInt))

Previous 15994 Revisions Next


© 1998-2018 The MESS Team