Use LuaPictureBox' custom resize in all cases
This commit is contained in:
parent
2c3fb68776
commit
1a30f6551e
|
@ -42,7 +42,11 @@ namespace BizHawk.Client.EmuHawk
|
||||||
=> control.Location = UIHelper.Scale(new Point(x, y));
|
=> control.Location = UIHelper.Scale(new Point(x, y));
|
||||||
|
|
||||||
private static void SetSize(Control control, int width, int height)
|
private static void SetSize(Control control, int width, int height)
|
||||||
=> control.Size = UIHelper.Scale(new Size(width, height));
|
{
|
||||||
|
var scaled = UIHelper.Scale(new Size(width, height));
|
||||||
|
if (control is LuaPictureBox lpb) lpb.LuaResize(scaled.Width, scaled.Height);
|
||||||
|
else control.Size = scaled;
|
||||||
|
}
|
||||||
|
|
||||||
private static void SetText(Control control, string caption)
|
private static void SetText(Control control, string caption)
|
||||||
=> control.Text = caption ?? string.Empty;
|
=> control.Text = caption ?? string.Empty;
|
||||||
|
|
Loading…
Reference in New Issue