src/mess/machine/sms.c
| r6082 | r6083 | |
| 66 | 66 | UINT8 sports_pad_2_y; |
| 67 | 67 | |
| 68 | 68 | /* 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 */ |
| 75 | 75 | |
| 76 | 76 | /* Cartridge slot info */ |
| 77 | 77 | UINT8 current_cartridge; |
| r6082 | r6083 | |
| 268 | 268 | } |
| 269 | 269 | |
| 270 | 270 | |
| 271 | | static int screen_hpos_nonscaled( const device_config *screen, int scaled_hpos ) |
| 271 | static UINT16 screen_hpos_nonscaled( const device_config *screen, int scaled_hpos ) |
| 272 | 272 | { |
| 273 | 273 | const rectangle *visarea = video_screen_get_visible_area(screen); |
| 274 | 274 | int offset_x = (scaled_hpos * (visarea->max_x - visarea->min_x)) / 255; |
| r6082 | r6083 | |
| 276 | 276 | } |
| 277 | 277 | |
| 278 | 278 | |
| 279 | | static int screen_vpos_nonscaled( const device_config *screen, int scaled_vpos ) |
| 279 | static UINT16 screen_vpos_nonscaled( const device_config *screen, int scaled_vpos ) |
| 280 | 280 | { |
| 281 | 281 | const rectangle *visarea = video_screen_get_visible_area(screen); |
| 282 | 282 | int offset_y = (scaled_vpos * (visarea->max_y - visarea->min_y)) / 255; |
| r6082 | r6083 | |
| 1116 | 1116 | return 0; |
| 1117 | 1117 | } |
| 1118 | 1118 | |
| 1119 | | static UINT8 detect_lphaser_xoffset( UINT8 *rom ) |
| 1119 | static int detect_lphaser_xoffset( UINT8 *rom ) |
| 1120 | 1120 | { |
| 1121 | 1121 | static const UINT8 signatures[6][16] = |
| 1122 | 1122 | { |