From 9b55ced1d29bfeb7b6fe401feab44a8286fda8c6 Mon Sep 17 00:00:00 2001 From: "R. Belmont" Date: Fri, 19 Jul 2019 16:35:20 -0400 Subject: Revert "Allow 16bpp gfxdecode (#5167)" This reverts commit a5e00faf88ec05d1705b9bc4796cc6f21f2cc7a9. --- src/emu/digfx.cpp | 35 +++++++++-------------------------- 1 file changed, 9 insertions(+), 26 deletions(-) (limited to 'src/emu/digfx.cpp') diff --git a/src/emu/digfx.cpp b/src/emu/digfx.cpp index acc1c5f1176..0055421b80c 100644 --- a/src/emu/digfx.cpp +++ b/src/emu/digfx.cpp @@ -249,33 +249,16 @@ void device_gfx_interface::decode_gfx(const gfx_decode_entry *gfxdecodeinfo) // otherwise, just use the line modulo else { - if (glcopy.planeoffset[1] != GFX_RAW) // 8bpp RAW case + int base = gfx.start; + int end = region_length/8; + int linemod = glcopy.yoffset[0]; + while (glcopy.total > 0) { - int base = gfx.start; - int end = region_length/8; - int linemod = glcopy.yoffset[0]; - while (glcopy.total > 0) - { - int elementbase = base + (glcopy.total - 1) * glcopy.charincrement / 8; - int lastpixelbase = elementbase + glcopy.height * linemod / 8 - 1; - if (lastpixelbase < end) - break; - glcopy.total--; - } - } - else // 16bpp RAW case - { - int base = gfx.start; - int end = region_length/16; - int linemod = glcopy.yoffset[0]; - while (glcopy.total > 0) - { - int elementbase = base + (glcopy.total - 1) * glcopy.charincrement / 16; - int lastpixelbase = elementbase + glcopy.height * linemod / 16 - 1; - if (lastpixelbase < end) - break; - glcopy.total--; - } + int elementbase = base + (glcopy.total - 1) * glcopy.charincrement / 8; + int lastpixelbase = elementbase + glcopy.height * linemod / 8 - 1; + if (lastpixelbase < end) + break; + glcopy.total--; } } -- cgit v1.2.3-70-g09d2