Only stop/start sound on resize on Windows
Windows will "freeze" the main thread in message pumping while resizing is occurring, while this does not occur on Linux. Resolves #4145
This commit is contained in:
parent
24d549ddb8
commit
3a8024b235
|
@ -524,7 +524,10 @@ namespace BizHawk.Client.EmuHawk
|
||||||
ResizeBegin += (o, e) =>
|
ResizeBegin += (o, e) =>
|
||||||
{
|
{
|
||||||
_inResizeLoop = true;
|
_inResizeLoop = true;
|
||||||
Sound?.StopSound();
|
if (!OSTailoredCode.IsUnixHost)
|
||||||
|
{
|
||||||
|
Sound?.StopSound();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Resize += (_, _) => UpdateWindowTitle();
|
Resize += (_, _) => UpdateWindowTitle();
|
||||||
|
@ -539,7 +542,10 @@ namespace BizHawk.Client.EmuHawk
|
||||||
_presentationPanel.Resized = true;
|
_presentationPanel.Resized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Sound?.StartSound();
|
if (!OSTailoredCode.IsUnixHost)
|
||||||
|
{
|
||||||
|
Sound?.StartSound();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Input.Instance = new Input(
|
Input.Instance = new Input(
|
||||||
|
|
Loading…
Reference in New Issue