~ubuntu-branches/ubuntu/karmic/xmame/karmic

« back to all changes in this revision

Viewing changes to src/vidhrdw/skykid.c

  • Committer: Bazaar Package Importer
  • Author(s): Bruno Barrera C.
  • Date: 2007-02-16 10:06:54 UTC
  • mfrom: (2.1.5 edgy)
  • Revision ID: james.westby@ubuntu.com-20070216100654-iztas2cl47k5j039
Tags: 0.106-2
* Added Italian debconf templates translation. (closes: #382672)
* Added German debconf templates translation. (closes: #396610)
* Added Japanese debconf templates translation. (closes: #400011)
* Added Portuguese debconf templates translation. (closes: #409960)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include "driver.h"
2
 
#include "vidhrdw/generic.h"
3
 
#include "tilemap.h"
4
 
 
5
 
data8_t *skykid_textram, *skykid_videoram, *skykid_spriteram;
6
 
 
7
 
static struct tilemap *bg_tilemap,*tx_tilemap;
 
2
 
 
3
UINT8 *skykid_textram, *skykid_videoram, *skykid_spriteram;
 
4
 
 
5
static tilemap *bg_tilemap,*tx_tilemap;
8
6
static int priority,scroll_x,scroll_y;
9
7
 
10
8
 
11
9
/***************************************************************************
12
10
 
13
 
        Convert the color PROMs.
14
 
 
15
 
        The palette PROMs are connected to the RGB output this way:
16
 
 
17
 
        bit 3   -- 220 ohm resistor  -- RED/GREEN/BLUE
18
 
                        -- 470 ohm resistor  -- RED/GREEN/BLUE
19
 
                        -- 1  kohm resistor  -- RED/GREEN/BLUE
20
 
        bit 0   -- 2.2kohm resistor  -- RED/GREEN/BLUE
 
11
    Convert the color PROMs.
 
12
 
 
13
    The palette PROMs are connected to the RGB output this way:
 
14
 
 
15
    bit 3   -- 220 ohm resistor  -- RED/GREEN/BLUE
 
16
            -- 470 ohm resistor  -- RED/GREEN/BLUE
 
17
            -- 1  kohm resistor  -- RED/GREEN/BLUE
 
18
    bit 0   -- 2.2kohm resistor  -- RED/GREEN/BLUE
21
19
 
22
20
***************************************************************************/
23
21
 
96
94
static void tx_get_tile_info(int tile_index)
97
95
{
98
96
        /* the hardware has two character sets, one normal and one flipped. When
99
 
           screen is flipped, character flip is done by selecting the 2nd character set.
100
 
           We reproduce this here, but since the tilemap system automatically flips
101
 
           characters when screen is flipped, we have to flip them back. */
 
97
       screen is flipped, character flip is done by selecting the 2nd character set.
 
98
       We reproduce this here, but since the tilemap system automatically flips
 
99
       characters when screen is flipped, we have to flip them back. */
102
100
        SET_TILE_INFO(
103
101
                        0,
104
102
                        skykid_textram[tile_index] | (flip_screen ? 0x100 : 0),
205
203
***************************************************************************/
206
204
 
207
205
/* the sprite generator IC is the same as Mappy */
208
 
static void skykid_draw_sprites(struct mame_bitmap *bitmap,const struct rectangle *cliprect)
 
206
static void skykid_draw_sprites(mame_bitmap *bitmap,const rectangle *cliprect)
209
207
{
210
208
        int offs;
211
209