mirror of
https://github.com/holub/mame
synced 2025-04-24 09:20:02 +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();
|
||||
|
||||
// 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;
|
||||
|
Loading…
Reference in New Issue
Block a user