| Previous | 15994 Revisions | Next |
| r2300 Sunday 6th April, 2008 at 12:35:54 UTC by Firewave |
|---|
| More Machine -> machine cleanups |
| [src/mess/drivers] | studio2.c tmc1800.c tmc2000e.c |
| [src/mess/video] | cdp1864.c cdp1864.h |
| r2299 | r2300 | |
|---|---|---|
| 235 | 235 | return 0; |
| 236 | 236 | } |
| 237 | 237 | |
| 238 | static void cdp1864_init_palette(double res_r, double res_g, double res_b, double res_bkg) | |
| 238 | static void cdp1864_init_palette(running_machine *machine, double res_r, double res_g, double res_b, double res_bkg) | |
| 239 | 239 | { |
| 240 | 240 | int i, r, g, b, luma; |
| 241 | 241 | |
| r2299 | r2300 | |
| 257 | 257 | |
| 258 | 258 | luma = (luma * 0xff) / 100; |
| 259 | 259 | |
| 260 | palette_set_color_rgb( | |
| 260 | palette_set_color_rgb( machine, i, r, g, b ); | |
| 261 | 261 | } |
| 262 | 262 | } |
| 263 | 263 | |
| 264 | void cdp1864_configure(const CDP1864_interface *intf) | |
| 264 | void cdp1864_configure(running_machine *machine, const CDP1864_interface *intf) | |
| 265 | 265 | { |
| 266 | 266 | cdp1864.colorram_r = intf->colorram_r; |
| 267 | cdp1864_init_palette(intf->res_r, intf->res_g, intf->res_b, intf->res_bkg); | |
| 267 | cdp1864_init_palette(machine, intf->res_r, intf->res_g, intf->res_b, intf->res_bkg); | |
| 268 | 268 | } |
| r2299 | r2300 | |
|---|---|---|
| 84 | 84 | |
| 85 | 85 | void cdp1864_audio_output_enable(int value); |
| 86 | 86 | |
| 87 | void cdp1864_configure(const CDP1864_interface *intf); | |
| 87 | void cdp1864_configure(running_machine *machine, const CDP1864_interface *intf); | |
| 88 | 88 | |
| 89 | 89 | READ8_HANDLER( cdp1864_dispon_r ); |
| 90 | 90 | READ8_HANDLER( cdp1864_dispoff_r ); |
| r2299 | r2300 | |
|---|---|---|
| 426 | 426 | static DRIVER_INIT( mpt02 ) |
| 427 | 427 | { |
| 428 | 428 | timer_set(attotime_zero, NULL, 0, mpt02_setup_beep); |
| 429 | cdp1864_configure(&mpt02_CDP1864_interface); | |
| 429 | cdp1864_configure(machine, &mpt02_CDP1864_interface); | |
| 430 | 430 | } |
| 431 | 431 | |
| 432 | 432 | /* Game Drivers */ |
| r2299 | r2300 | |
|---|---|---|
| 284 | 284 | |
| 285 | 285 | timer_set(attotime_zero, NULL, 0, setup_beep); |
| 286 | 286 | |
| 287 | cdp1864_configure(&tmc2000e_CDP1864_interface); | |
| 287 | cdp1864_configure(machine, &tmc2000e_CDP1864_interface); | |
| 288 | 288 | } |
| 289 | 289 | |
| 290 | 290 | // YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME |
| r2299 | r2300 | |
|---|---|---|
| 424 | 424 | static DRIVER_INIT( tmc2000 ) |
| 425 | 425 | { |
| 426 | 426 | timer_set(attotime_zero, NULL, 0, setup_beep); |
| 427 | cdp1864_configure(&tmc2000_CDP1864_interface); | |
| 427 | cdp1864_configure(machine, &tmc2000_CDP1864_interface); | |
| 428 | 428 | } |
| 429 | 429 | |
| 430 | 430 | /* System Drivers */ |
| Previous | 15994 Revisions | Next |