diff --git a/src/BizHawk.Client.EmuHawk/MainForm.cs b/src/BizHawk.Client.EmuHawk/MainForm.cs index b1a43052f7..e77168754f 100644 --- a/src/BizHawk.Client.EmuHawk/MainForm.cs +++ b/src/BizHawk.Client.EmuHawk/MainForm.cs @@ -1058,23 +1058,15 @@ namespace BizHawk.Client.EmuHawk public void TakeScreenshotToClipboard() { - using (var bb = Config.ScreenshotCaptureOsd ? CaptureOSD() : MakeScreenshotImage()) - { - using var img = bb.ToSysdrawingBitmap(); - Clipboard.SetImage(img); - } - + using var bb = Config.ScreenshotCaptureOsd ? CaptureOSD() : MakeScreenshotImage(); + bb.ToSysdrawingBitmap().ToClipBoard(); AddOnScreenMessage("Screenshot (raw) saved to clipboard."); } private void TakeScreenshotClientToClipboard() { - using (var bb = DisplayManager.RenderOffscreen(_currentVideoProvider, Config.ScreenshotCaptureOsd)) - { - using var img = bb.ToSysdrawingBitmap(); - Clipboard.SetImage(img); - } - + using var bb = DisplayManager.RenderOffscreen(_currentVideoProvider, Config.ScreenshotCaptureOsd); + bb.ToSysdrawingBitmap().ToClipBoard(); AddOnScreenMessage("Screenshot (client) saved to clipboard."); }