diff options
Diffstat (limited to 'src/osd/modules/render/bgfxutil.cpp')
-rw-r--r-- | src/osd/modules/render/bgfxutil.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/osd/modules/render/bgfxutil.cpp b/src/osd/modules/render/bgfxutil.cpp index 91b64ac60ce..cbf2428d61f 100644 --- a/src/osd/modules/render/bgfxutil.cpp +++ b/src/osd/modules/render/bgfxutil.cpp @@ -14,18 +14,18 @@ #include "render.h" -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* bgfx_util::mame_texture_data_to_bgfx_texture_data(uint32_t 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_t* data = reinterpret_cast<uint32_t*>(mem->data); + uint16_t* src16 = reinterpret_cast<uint16_t*>(base); + uint32_t* src32 = reinterpret_cast<uint32_t*>(base); 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_t* dst_line = data + y * width; + uint16_t* src_line16 = src16 + y * rowpixels; + uint32_t* src_line32 = src32 + y * rowpixels; switch (format) { case PRIMFLAG_TEXFORMAT(TEXFORMAT_PALETTE16): @@ -50,7 +50,7 @@ const bgfx::Memory* bgfx_util::mame_texture_data_to_bgfx_texture_data(UINT32 for return mem; } -uint64_t bgfx_util::get_blend_state(UINT32 blend) +uint64_t bgfx_util::get_blend_state(uint32_t blend) { switch (blend) { |