From 91605d3f4df9b9fb1490c276053ff274fb728816 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 3 Dec 2015 18:17:25 +0100 Subject: clang-modernize part 1 (nw) --- src/emu/rendutil.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/emu/rendutil.cpp') diff --git a/src/emu/rendutil.cpp b/src/emu/rendutil.cpp index 872533583b5..1a487536455 100644 --- a/src/emu/rendutil.cpp +++ b/src/emu/rendutil.cpp @@ -370,7 +370,7 @@ int render_clip_quad(render_bounds *bounds, const render_bounds *clip, render_qu { float frac = (clip->y0 - bounds->y0) / (bounds->y1 - bounds->y0); bounds->y0 = clip->y0; - if (texcoords != NULL) + if (texcoords != nullptr) { texcoords->tl.u += (texcoords->bl.u - texcoords->tl.u) * frac; texcoords->tl.v += (texcoords->bl.v - texcoords->tl.v) * frac; @@ -384,7 +384,7 @@ int render_clip_quad(render_bounds *bounds, const render_bounds *clip, render_qu { float frac = (bounds->y1 - clip->y1) / (bounds->y1 - bounds->y0); bounds->y1 = clip->y1; - if (texcoords != NULL) + if (texcoords != nullptr) { texcoords->bl.u -= (texcoords->bl.u - texcoords->tl.u) * frac; texcoords->bl.v -= (texcoords->bl.v - texcoords->tl.v) * frac; @@ -398,7 +398,7 @@ int render_clip_quad(render_bounds *bounds, const render_bounds *clip, render_qu { float frac = (clip->x0 - bounds->x0) / (bounds->x1 - bounds->x0); bounds->x0 = clip->x0; - if (texcoords != NULL) + if (texcoords != nullptr) { texcoords->tl.u += (texcoords->tr.u - texcoords->tl.u) * frac; texcoords->tl.v += (texcoords->tr.v - texcoords->tl.v) * frac; @@ -412,7 +412,7 @@ int render_clip_quad(render_bounds *bounds, const render_bounds *clip, render_qu { float frac = (bounds->x1 - clip->x1) / (bounds->x1 - bounds->x0); bounds->x1 = clip->x1; - if (texcoords != NULL) + if (texcoords != nullptr) { texcoords->tr.u -= (texcoords->tr.u - texcoords->tl.u) * frac; texcoords->tr.v -= (texcoords->tr.v - texcoords->tl.v) * frac; @@ -536,7 +536,7 @@ bool render_load_png(bitmap_argb32 &bitmap, emu_file &file, const char *dirname, // open the file std::string fname; - if (dirname == NULL) + if (dirname == nullptr) fname.assign(filename); else fname.assign(dirname).append(PATH_SEPARATOR).append(filename); -- cgit v1.2.3-70-g09d2