Previous | 199869 Revisions | Next |
r33257 Friday 7th November, 2014 at 09:14:12 UTC by Alex W. Jackson |
---|
tilemap.c: Respect gfx_element::colors() just like drawgfx.c does. Add temporary assert to catch regressions (i.e. drivers that didn't define their gfx elements correctly) (nw) |
[src/emu] | tilemap.h |
r241768 | r241769 | |
---|---|---|
443 | 443 | { |
444 | 444 | gfx_element *gfx = decoder->gfx(_gfxnum); |
445 | 445 | int code = rawcode % gfx->elements(); |
446 | assert(rawcolor < gfx->colors()); // TEMPORARY ASSERT | |
446 | 447 | pen_data = gfx->get_data(code); |
447 | palette_base = gfx->colorbase() + gfx->granularity() * rawcolor; | |
448 | palette_base = gfx->colorbase() + gfx->granularity() * (rawcolor % gfx->colors()); | |
448 | 449 | flags = _flags; |
449 | 450 | gfxnum = _gfxnum; |
450 | 451 | } |
https://github.com/mamedev/mame/commit/4fe7a561923379c47fe127cc85066357c32c7f2e |
Previous | 199869 Revisions | Next |