mirror of
https://github.com/holub/mame
synced 2025-10-08 09:30:17 +03:00
Since value is unsigned, it will never be lower than zero (nw)
This commit is contained in:
parent
3f4388bca7
commit
dbcc0a5cc4
@ -446,8 +446,8 @@ void render_texture::get_scaled(u32 dwidth, u32 dheight, render_texinfo &texinfo
|
|||||||
int sheight = m_sbounds.height();
|
int sheight = m_sbounds.height();
|
||||||
|
|
||||||
// ensure height/width are non-zero
|
// ensure height/width are non-zero
|
||||||
if (dwidth < 1) dwidth = 1;
|
if (dwidth == 0) dwidth = 1;
|
||||||
if (dheight < 1) dheight = 1;
|
if (dheight == 0) dheight = 1;
|
||||||
|
|
||||||
texinfo.unique_id = m_id;
|
texinfo.unique_id = m_id;
|
||||||
texinfo.old_id = m_old_id;
|
texinfo.old_id = m_old_id;
|
||||||
|
Loading…
Reference in New Issue
Block a user