summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/vooddefs.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-04-24 15:15:04 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-04-24 15:38:49 +0200
commit96d123b42c87007222bb545878cdef0116b60885 (patch)
treea611581b57d4debe784f1134a3de95426a7ba592 /src/devices/video/vooddefs.h
parentc2c22570779f69e6921499b7abeb75f6db3d7822 (diff)
NULL->nullptr, instead of DEVCB_NULL use always DEVCB_NOOP to prevent confusion (nw)
Diffstat (limited to 'src/devices/video/vooddefs.h')
-rw-r--r--src/devices/video/vooddefs.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/video/vooddefs.h b/src/devices/video/vooddefs.h
index 5bef9d4cc8e..7ccfcabb057 100644
--- a/src/devices/video/vooddefs.h
+++ b/src/devices/video/vooddefs.h
@@ -361,11 +361,11 @@ static inline UINT32 compute_raster_hash(const raster_info *info)
#define DITHER_G(val,dith) ((((val) << 2) - ((val) >> 4) + ((val) >> 6) + (dith)) >> 2)
#define DECLARE_DITHER_POINTERS \
- const UINT8 *dither_lookup = NULL; \
- const UINT8 *dither4 = NULL; \
- const UINT8 *dither = NULL
+ const UINT8 *dither_lookup = nullptr; \
+ const UINT8 *dither4 = nullptr; \
+ const UINT8 *dither = nullptr
#define DECLARE_DITHER_POINTERS_NO_DITHER_VAR \
- const UINT8 *dither_lookup = NULL;
+ const UINT8 *dither_lookup = nullptr;
#define COMPUTE_DITHER_POINTERS(FBZMODE, YY) \
do \
{ \
@@ -2718,7 +2718,7 @@ void voodoo_device::raster_##name(void *destbase, INT32 y, const poly_extent *ex
\
/* get pointers to the target buffer and depth buffer */ \
dest = (UINT16 *)destbase + scry * vd->fbi.rowpixels; \
- depth = (vd->fbi.auxoffs != ~0) ? ((UINT16 *)(vd->fbi.ram + vd->fbi.auxoffs) + scry * vd->fbi.rowpixels) : NULL; \
+ depth = (vd->fbi.auxoffs != ~0) ? ((UINT16 *)(vd->fbi.ram + vd->fbi.auxoffs) + scry * vd->fbi.rowpixels) : nullptr; \
\
/* compute the starting parameters */ \
dx = startx - (extra->ax >> 4); \