summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2019-07-19 16:35:20 -0400
committer GitHub <noreply@github.com>2019-07-19 16:35:20 -0400
commit9b55ced1d29bfeb7b6fe401feab44a8286fda8c6 (patch)
treec44fa92b54dbb723d0f3489004e88ef5c6db0ab8 /src/frontend
parent802262d37c03b8531f340dc898bebe9ab394c4e4 (diff)
Revert "Allow 16bpp gfxdecode (#5167)"
This reverts commit a5e00faf88ec05d1705b9bc4796cc6f21f2cc7a9.
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/mame/ui/viewgfx.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frontend/mame/ui/viewgfx.cpp b/src/frontend/mame/ui/viewgfx.cpp
index 04a4870eaa6..1dd210fa88a 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);
- uint16_t pixdata = gfx.get_data(code)[xpixel + ypixel * gfx.rowbytes()];
+ uint8_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 uint16_t *src = gfx.get_data(index);
+ const uint8_t *src = gfx.get_data(index);
// loop over columns in the cell
for (x = 0; x < width; x++)
{
int effx = x, effy = y;
- const uint16_t *s;
+ const uint8_t *s;
// compute effective x,y values after rotation
if (!(rotate & ORIENTATION_SWAP_XY))