diff options
author | 2014-02-18 08:05:44 +0000 | |
---|---|---|
committer | 2014-02-18 08:05:44 +0000 | |
commit | 3e2995cbba04d05365e28c52e743ceed8981a5cf (patch) | |
tree | 56bfadb6768b2a2f284387f382c13bed41824d5e /src/emu/ui/viewgfx.c | |
parent | 847cecbadc820d12e1e7816bfcbb45f931a5f0e1 (diff) |
Converted palette_t and palette_client to classes. General palette.c
cleanup.
Diffstat (limited to 'src/emu/ui/viewgfx.c')
-rw-r--r-- | src/emu/ui/viewgfx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/ui/viewgfx.c b/src/emu/ui/viewgfx.c index 5c584787826..f1868c559af 100644 --- a/src/emu/ui/viewgfx.c +++ b/src/emu/ui/viewgfx.c @@ -257,7 +257,7 @@ static void palette_handler(running_machine &machine, render_container *containe { int total = state->palette.which ? colortable_palette_get_size(machine.colortable) : machine.total_colors(); const char *title = state->palette.which ? "COLORTABLE" : "PALETTE"; - const rgb_t *raw_color = palette_entry_list_raw(machine.palette); + const rgb_t *raw_color = machine.palette->entry_list_raw(); render_font *ui_font = machine.ui().get_font(); float cellwidth, cellheight; float chwidth, chheight; @@ -787,7 +787,7 @@ static void gfxset_draw_item(running_machine &machine, gfx_element *gfx, int ind }; int width = (rotate & ORIENTATION_SWAP_XY) ? gfx->height() : gfx->width(); int height = (rotate & ORIENTATION_SWAP_XY) ? gfx->width() : gfx->height(); - const rgb_t *palette = (machine.total_colors() != 0) ? palette_entry_list_raw(machine.palette) : NULL; + const rgb_t *palette = (machine.total_colors() != 0) ? machine.palette->entry_list_raw() : NULL; UINT32 palette_mask = ~0; int x, y; |