Previous 15994 Revisions Next

r6083 Thursday 15th October, 2009 at 04:54:11 UTC by Fabio Priuli
[SMS] fixed a few mistakes I did in rev.6079
[src/mess/machine]sms.c

src/mess/machine/sms.c
r6082r6083
6666   UINT8 sports_pad_2_y;
6767   
6868   /* Data needed for Light Phaser */
69   UINT8 lphaser_latch;
70   UINT8 lphaser_1_x;
71   UINT8 lphaser_1_y;
72   UINT8 lphaser_2_x;
73   UINT8 lphaser_2_y;
74   UINT8 lphaser_x_offs;   /* Needed to 'calibrate' lphaser; set at cart loading */
69   UINT16 lphaser_latch;
70   UINT16 lphaser_1_x;
71   UINT16 lphaser_1_y;
72   UINT16 lphaser_2_x;
73   UINT16 lphaser_2_y;
74   int lphaser_x_offs;   /* Needed to 'calibrate' lphaser; set at cart loading */
7575
7676   /* Cartridge slot info */
7777   UINT8 current_cartridge;
r6082r6083
268268}
269269
270270
271static int screen_hpos_nonscaled( const device_config *screen, int scaled_hpos )
271static UINT16 screen_hpos_nonscaled( const device_config *screen, int scaled_hpos )
272272{
273273   const rectangle *visarea = video_screen_get_visible_area(screen);
274274   int offset_x = (scaled_hpos * (visarea->max_x - visarea->min_x)) / 255;
r6082r6083
276276}
277277
278278
279static int screen_vpos_nonscaled( const device_config *screen, int scaled_vpos )
279static UINT16 screen_vpos_nonscaled( const device_config *screen, int scaled_vpos )
280280{
281281   const rectangle *visarea = video_screen_get_visible_area(screen);
282282   int offset_y = (scaled_vpos * (visarea->max_y - visarea->min_y)) / 255;
r6082r6083
11161116   return 0;
11171117}
11181118
1119static UINT8 detect_lphaser_xoffset( UINT8 *rom )
1119static int detect_lphaser_xoffset( UINT8 *rom )
11201120{
11211121   static const UINT8 signatures[6][16] =
11221122   {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team