summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/speglsht.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/speglsht.cpp')
-rw-r--r--src/mame/drivers/speglsht.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/speglsht.cpp b/src/mame/drivers/speglsht.cpp
index 2c681d9d34e..91c1a3e31f0 100644
--- a/src/mame/drivers/speglsht.cpp
+++ b/src/mame/drivers/speglsht.cpp
@@ -123,11 +123,11 @@ public:
m_subcpu(*this, "sub")
{ }
- required_shared_ptr<UINT8> m_shared;
- required_shared_ptr<UINT32> m_framebuffer;
- UINT32 m_videoreg;
+ required_shared_ptr<uint8_t> m_shared;
+ required_shared_ptr<uint32_t> m_framebuffer;
+ uint32_t m_videoreg;
std::unique_ptr<bitmap_ind16> m_bitmap;
- required_shared_ptr<UINT32> m_cop_ram;
+ required_shared_ptr<uint32_t> m_cop_ram;
DECLARE_READ32_MEMBER(shared_r);
DECLARE_WRITE32_MEMBER(shared_w);
DECLARE_WRITE32_MEMBER(videoreg_w);
@@ -138,7 +138,7 @@ public:
DECLARE_MACHINE_RESET(speglsht);
virtual void machine_start() override;
DECLARE_VIDEO_START(speglsht);
- UINT32 screen_update_speglsht(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update_speglsht(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
required_device<palette_device> m_palette;
required_device<st0016_cpu_device> m_maincpu;
required_device<cpu_device> m_subcpu;
@@ -213,12 +213,12 @@ WRITE32_MEMBER(speglsht_state::cop_w)
//matrix * vector
READ32_MEMBER(speglsht_state::cop_r)
{
- INT32 *cop=(INT32*)&m_cop_ram[0];
+ int32_t *cop=(int32_t*)&m_cop_ram[0];
union
{
- INT32 a;
- UINT32 b;
+ int32_t a;
+ uint32_t b;
}temp;
switch (offset)
@@ -359,7 +359,7 @@ VIDEO_START_MEMBER(speglsht_state,speglsht)
bitmap.pix32(y, x) = (b) | ((g)<<8) | ((r)<<16); \
}
-UINT32 speglsht_state::screen_update_speglsht(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
+uint32_t speglsht_state::screen_update_speglsht(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
int x,y,dy;
@@ -381,7 +381,7 @@ UINT32 speglsht_state::screen_update_speglsht(screen_device &screen, bitmap_rgb3
//copy temporary bitmap to rgb 32 bit bitmap
for(y=cliprect.min_y; y<cliprect.max_y;y++)
{
- UINT16 *srcline = &m_bitmap->pix16(y);
+ uint16_t *srcline = &m_bitmap->pix16(y);
for(x=cliprect.min_x; x<cliprect.max_x;x++)
{
if(srcline[x])