diff options
author | 2016-04-27 08:13:59 +0200 | |
---|---|---|
committer | 2016-04-27 08:13:59 +0200 | |
commit | cfee536f22f032c7ead65075f73cc6fd8549e68b (patch) | |
tree | f4b4703dd0295571684456c19668f508b3ddcb3a /src/osd/modules/render/bgfxutil.cpp | |
parent | be8159d01eaa7533e7758bf07384501dbc6214f3 (diff) |
Cleanups and version bumpmame0173
Diffstat (limited to 'src/osd/modules/render/bgfxutil.cpp')
-rw-r--r-- | src/osd/modules/render/bgfxutil.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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<UINT32*>(mem->data); - UINT16* src16 = reinterpret_cast<UINT16*>(base); - UINT32* src32 = reinterpret_cast<UINT32*>(base); + UINT32* data = reinterpret_cast<UINT32*>(mem->data); + UINT16* src16 = reinterpret_cast<UINT16*>(base); + UINT32* src32 = reinterpret_cast<UINT32*>(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): |