summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/atarirle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/atarirle.cpp')
-rw-r--r--src/mame/video/atarirle.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/video/atarirle.cpp b/src/mame/video/atarirle.cpp
index 3184310026f..6a433d4666c 100644
--- a/src/mame/video/atarirle.cpp
+++ b/src/mame/video/atarirle.cpp
@@ -190,7 +190,7 @@ void atari_rle_objects_device::device_start()
{
// resolve our memory
memory_share *share = owner()->memshare(tag());
- if (share == NULL)
+ if (share == nullptr)
throw emu_fatalerror("Error: unable to find memory share '%s' needed for Atari RLE device", tag());
m_ram.set(*share, 2);
@@ -386,7 +386,7 @@ void atari_rle_objects_device::prescan_rle(int which)
// make sure it's valid
if (offset < which * 4 || offset >= m_romlength)
{
- info.data = NULL;
+ info.data = nullptr;
return;
}
@@ -474,7 +474,7 @@ void atari_rle_objects_device::sort_and_render()
};
// sort the motion objects into their proper priorities
- sort_entry_t *list_head[256] = { 0 };
+ sort_entry_t *list_head[256] = { nullptr };
sort_entry_t sort_entry[256];
for (int objnum = 0; objnum < 256; objnum++)
{
@@ -489,7 +489,7 @@ void atari_rle_objects_device::sort_and_render()
int count = 0;
int hilite = -1;
for (int order = 1; order < 256; order++)
- for (sort_entry_t *current = list_head[order]; current != NULL; current = current->next)
+ for (sort_entry_t *current = list_head[order]; current != nullptr; current = current->next)
{
// extract scale and code
int scale = m_scalemask.extract(m_ram, current->entry);
@@ -537,7 +537,7 @@ void atari_rle_objects_device::draw_rle(bitmap_ind16 &bitmap, const rectangle &c
{
// bail on a NULL object
const object_info &info = m_info[code];
- if (info.data == NULL)
+ if (info.data == nullptr)
return;
//