Lua - implement client.screenshottoclipboard() and client.setscreenshotosd()

This commit is contained in:
adelikat 2012-10-27 00:19:43 +00:00
parent 4193ddfa5d
commit a0111d1c08
2 changed files with 13 additions and 1 deletions

View File

@ -512,6 +512,8 @@ namespace BizHawk.MultiClient
"screenwidth",
"screenheight",
"screenshot",
"screenshottoclipboard",
"setscreenshotosd",
};
public static string[] FormsFunctions = new string[]
@ -2054,6 +2056,16 @@ namespace BizHawk.MultiClient
}
}
public void client_screenshottoclipboard()
{
Global.MainForm.TakeScreenshotToClipboard();
}
public void client_setscreenshotosd(bool value)
{
Global.Config.Screenshot_CaptureOSD = value;
}
public int client_screenwidth()
{
return Global.RenderPanel.NativeSize.Width;

View File

@ -2469,7 +2469,7 @@ namespace BizHawk.MultiClient
return image;
}
void TakeScreenshotToClipboard()
public void TakeScreenshotToClipboard()
{
using (var img = Global.Config.Screenshot_CaptureOSD ? CaptureOSD() : MakeScreenshotImage())
{