diff options
author | 2019-07-18 23:17:11 +0900 | |
---|---|---|
committer | 2019-07-18 10:17:11 -0400 | |
commit | a5e00faf88ec05d1705b9bc4796cc6f21f2cc7a9 (patch) | |
tree | ce9426cca7d5a2393a93a6438ffeec2f784f1533 /src/frontend/mame/ui/viewgfx.cpp | |
parent | 1c91003578a8b73e1d3039ada7b3a278d8c607ad (diff) |
Allow 16bpp gfxdecode (#5167)
* digfx.cpp : Add 16bpp case of RAW gfx layout
drawgfx.cpp, tilemap.cpp : Make changeable total elements of gfx_elements constructor at RAW case, Allow 16bpp gfxdecode, Fix spacing
tilemap.cpp : Allow 16bpp tilemap pen data
gstream.cpp : Use gfxdecode for 16bpp gfx of X2222, Fix spacing
igs017_igs031.cpp : Cleanup single sprite drawing routine
jedi.cpp : Improve debug gfxdecode viewer(text gfx)
* cps1.cpp : Minor fixes
* gstream.cpp : Fix regression in x2222
drawgfx.cpp : Fix 16bpp transparent pen
* gstream.cpp : Fix regression, Reduce unnecessary lines
* Sync to master
Diffstat (limited to 'src/frontend/mame/ui/viewgfx.cpp')
-rw-r--r-- | src/frontend/mame/ui/viewgfx.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frontend/mame/ui/viewgfx.cpp b/src/frontend/mame/ui/viewgfx.cpp index 1dd210fa88a..04a4870eaa6 100644 --- a/src/frontend/mame/ui/viewgfx.cpp +++ b/src/frontend/mame/ui/viewgfx.cpp @@ -714,7 +714,7 @@ static void gfxset_handler(mame_ui_manager &mui, render_container &container, ui ypixel = (cellypix - 2) - ypixel; if (info.rotate[set] & ORIENTATION_SWAP_XY) std::swap(xpixel, ypixel); - uint8_t pixdata = gfx.get_data(code)[xpixel + ypixel * gfx.rowbytes()]; + uint16_t pixdata = gfx.get_data(code)[xpixel + ypixel * gfx.rowbytes()]; util::stream_format(title_buf, " #%X:%X @ %d,%d = %X", code, info.color[set], xpixel, ypixel, gfx.colorbase() + info.color[set] * gfx.granularity() + pixdata); @@ -982,13 +982,13 @@ static void gfxset_draw_item(running_machine &machine, gfx_element &gfx, int ind for (y = 0; y < height; y++) { uint32_t *dest = &bitmap.pix32(dsty + y, dstx); - const uint8_t *src = gfx.get_data(index); + const uint16_t *src = gfx.get_data(index); // loop over columns in the cell for (x = 0; x < width; x++) { int effx = x, effy = y; - const uint8_t *s; + const uint16_t *s; // compute effective x,y values after rotation if (!(rotate & ORIENTATION_SWAP_XY)) |