summaryrefslogtreecommitdiffstats
path: root/src/osd/modules/render/bgfxutil.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
commitddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch)
treea70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/osd/modules/render/bgfxutil.cpp
parent333bff8de64dfaeb98134000412796b4fdef970b (diff)
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/osd/modules/render/bgfxutil.cpp')
-rw-r--r--src/osd/modules/render/bgfxutil.cpp16
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)
{