fix PictureBox when width or height is null

This commit is contained in:
CasualPokePlayer 2023-02-24 13:28:05 -08:00
parent b45668ecea
commit 2c3fb68776
1 changed files with 1 additions and 2 deletions
src/BizHawk.Client.EmuHawk/tools/Lua/Libraries

View File

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