Checkpoint 2:
gfxdecode devices must now be assigned a palette in MCFG. Added palette devices to several MESS drivers and devices to comply with this requirement. This palette is assigned as a default to the gfx_elements created by the device (but still not used for drawing yet, except in the UI graphics viewer)

Tilemaps now have a pointer to a palette device and use that palette for rgb32 drawing, rather than the palette of the screen or bitmap they are drawing to (since rgb32 screens don't have palettes now). When a tilemap is created, it takes its palette from the gfxdecode device it was created with, but you can change a tilemap's palette device with set_palette() at any time (doing this does not mark the tilemap dirty, since all tilemaps use indexed bitmaps internally)


git-svn-id: svn://dspnet.fr/mame/trunk@28537 749742ba-7341-0410-aadc-df50b521781e
fix UI tilemap viewer (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@28538 749742ba-7341-0410-aadc-df50b521781e
amiga: added a pair of functions to the driver class. (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@28539 749742ba-7341-0410-aadc-df50b521781e
Converted dl1416_device to devcb2 (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@28540 749742ba-7341-0410-aadc-df50b521781e
hunter2: save RAM contents as NVRAM (no whatsnew)

git-svn-id: svn://dspnet.fr/mame/trunk@28541 749742ba-7341-0410-aadc-df50b521781e
Converted hd64610_device to devcb2 (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@28542 749742ba-7341-0410-aadc-df50b521781e
Converted 74145_device to devcb2 (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@28543 749742ba-7341-0410-aadc-df50b521781e
Converted mc68901_device to devcb2 (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@28544 749742ba-7341-0410-aadc-df50b521781e
fixed problematic mame drivers (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@28545 749742ba-7341-0410-aadc-df50b521781e
Fixed all bitmap.palette() users to use m_palette instead (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@28546 749742ba-7341-0410-aadc-df50b521781e
There is also machine().primary_screen that we should replace wiht m_screen, and most is in devices (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@28547 749742ba-7341-0410-aadc-df50b521781e
primary_screen -> first_screen() (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@28548 749742ba-7341-0410-aadc-df50b521781e
validation fix (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@28549 749742ba-7341-0410-aadc-df50b521781e
Converted ds75161a_device to devcb2 (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@28550 749742ba-7341-0410-aadc-df50b521781e
Possible fix for leland.c and tdv2324.c problems in debug builds regression test run. (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@28551 749742ba-7341-0410-aadc-df50b521781e
Fix for gx4000 problems in debug builds regression test run. (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@28552 749742ba-7341-0410-aadc-df50b521781e
It could never reach old style hack anyway (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@28553 749742ba-7341-0410-aadc-df50b521781e
Fix for zac2650.c problems in debug builds regression test run. (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@28554 749742ba-7341-0410-aadc-df50b521781e
removed usage of machine().firstcpu (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@28555 749742ba-7341-0410-aadc-df50b521781e
debug output uses the gpu screen rather than using first_screen(). (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@28556 749742ba-7341-0410-aadc-df50b521781e