fix PictureBox when width or height is null
This commit is contained in:
parent
b45668ecea
commit
2c3fb68776
src/BizHawk.Client.EmuHawk/tools/Lua/Libraries
|
@ -415,10 +415,9 @@ namespace BizHawk.Client.EmuHawk
|
|||
if (width.HasValue && height.HasValue)
|
||||
{
|
||||
pictureBox.LuaResize(width.Value, height.Value);
|
||||
SetSize(pictureBox, width.Value, height.Value);
|
||||
}
|
||||
|
||||
SetSize(pictureBox, width.Value, height.Value);
|
||||
|
||||
return (long)pictureBox.Handle;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue