Since value is unsigned, it will never be lower than zero (nw)

This commit is contained in:
yz70s 2019-06-16 23:46:57 +02:00
parent 3f4388bca7
commit dbcc0a5cc4

View File

@ -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;