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

« back to all changes in this revision

Viewing changes to src/vidhrdw/crshrace.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
2
#include "vidhrdw/konamiic.h"
4
3
#include "crshrace.h"
5
4
 
6
5
 
7
 
data16_t *crshrace_videoram1,*crshrace_videoram2;
8
 
data16_t *crshrace_roz_ctrl1,*crshrace_roz_ctrl2;
 
6
UINT16 *crshrace_videoram1,*crshrace_videoram2;
 
7
UINT16 *crshrace_roz_ctrl1,*crshrace_roz_ctrl2;
9
8
 
10
9
static int roz_bank,gfxctrl,flipscreen;
11
10
 
12
 
static struct tilemap *tilemap1,*tilemap2;
 
11
static tilemap *tilemap1,*tilemap2;
13
12
 
14
13
 
15
14
 
109
108
 
110
109
***************************************************************************/
111
110
 
112
 
static void draw_sprites(struct mame_bitmap *bitmap,const struct rectangle *cliprect)
 
111
static void draw_sprites(mame_bitmap *bitmap,const rectangle *cliprect)
113
112
{
114
113
        int offs;
115
114
 
122
121
                int ox,oy,x,y,xsize,ysize,zoomx,zoomy,flipx,flipy,color;
123
122
                /* table hand made by looking at the ship explosion in aerofgt attract mode */
124
123
                /* it's almost a logarithmic scale but not exactly */
125
 
                int zoomtable[16] = { 0,7,14,20,25,30,34,38,42,46,49,52,54,57,59,61 };
 
124
                static const int zoomtable[16] = { 0,7,14,20,25,30,34,38,42,46,49,52,54,57,59,61 };
126
125
 
127
126
                attr_start = 4 * (buffered_spriteram16[offs++] & 0x03ff);
128
127
 
181
180
}
182
181
 
183
182
 
184
 
static void draw_bg(struct mame_bitmap *bitmap,const struct rectangle *cliprect)
 
183
static void draw_bg(mame_bitmap *bitmap,const rectangle *cliprect)
185
184
{
186
185
        tilemap_draw(bitmap,cliprect,tilemap2,0,0);
187
186
}
188
187
 
189
188
 
190
 
static void draw_fg(struct mame_bitmap *bitmap,const struct rectangle *cliprect)
 
189
static void draw_fg(mame_bitmap *bitmap,const rectangle *cliprect)
191
190
{
192
191
        K053936_0_zoom_draw(bitmap,cliprect,tilemap1,0,0);
193
192
}
217
216
                        draw_sprites(bitmap,cliprect);
218
217
                        break;
219
218
                default:
220
 
usrintf_showmessage("gfxctrl = %02x",gfxctrl);
 
219
ui_popup("gfxctrl = %02x",gfxctrl);
221
220
                        break;
222
221
        }
223
222
}