From cfee536f22f032c7ead65075f73cc6fd8549e68b Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 27 Apr 2016 08:13:59 +0200 Subject: Cleanups and version bump --- src/osd/modules/render/bgfxutil.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/osd/modules/render/bgfxutil.cpp') diff --git a/src/osd/modules/render/bgfxutil.cpp b/src/osd/modules/render/bgfxutil.cpp index a5099534220..91b64ac60ce 100644 --- a/src/osd/modules/render/bgfxutil.cpp +++ b/src/osd/modules/render/bgfxutil.cpp @@ -17,15 +17,15 @@ const bgfx::Memory* bgfx_util::mame_texture_data_to_bgfx_texture_data(UINT32 format, int width, int height, int rowpixels, const rgb_t *palette, void *base) { const bgfx::Memory* mem = bgfx::alloc(width * height * 4); - UINT32* data = reinterpret_cast(mem->data); - UINT16* src16 = reinterpret_cast(base); - UINT32* src32 = reinterpret_cast(base); + UINT32* data = reinterpret_cast(mem->data); + UINT16* src16 = reinterpret_cast(base); + UINT32* src32 = reinterpret_cast(base); - for (int y = 0; y < height; y++) + for (int y = 0; y < height; y++) { - UINT32* dst_line = data + y * width; - UINT16* src_line16 = src16 + y * rowpixels; - UINT32* src_line32 = src32 + y * rowpixels; + UINT32* dst_line = data + y * width; + UINT16* src_line16 = src16 + y * rowpixels; + UINT32* src_line32 = src32 + y * rowpixels; switch (format) { case PRIMFLAG_TEXFORMAT(TEXFORMAT_PALETTE16): -- cgit v1.2.3-70-g09d2