diff options
author | 2019-06-16 23:46:57 +0200 | |
---|---|---|
committer | 2019-06-17 01:48:43 +0200 | |
commit | dbcc0a5cc4df935685834c873487d5f4c815368a (patch) | |
tree | 5916ff763a85a16e554b71c42045a91dbb3d6e5e /src/emu/render.cpp | |
parent | 3f4388bca7c3175d0679d9094fc94ec221fdaa35 (diff) |
Since value is unsigned, it will never be lower than zero (nw)
Diffstat (limited to 'src/emu/render.cpp')
-rw-r--r-- | src/emu/render.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/render.cpp b/src/emu/render.cpp index ab26abaf154..9b1c09a6f3a 100644 --- a/src/emu/render.cpp +++ b/src/emu/render.cpp @@ -446,8 +446,8 @@ void render_texture::get_scaled(u32 dwidth, u32 dheight, render_texinfo &texinfo int sheight = m_sbounds.height(); // ensure height/width are non-zero - if (dwidth < 1) dwidth = 1; - if (dheight < 1) dheight = 1; + if (dwidth == 0) dwidth = 1; + if (dheight == 0) dheight = 1; texinfo.unique_id = m_id; texinfo.old_id = m_old_id; |