diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-26 21:50:11 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-26 21:50:11 +0300 |
commit | f95dfc0e02610fecb5981120d121ab7b4626a8ac (patch) | |
tree | b5937474783fb2d85d7f85c4606e4b48425e3228 /WorkerForm.cs | |
parent | 3202bb9fca791d00858dc9168d6a6d7427446110 (diff) |
Translations sync, fixes2.21f
Diffstat (limited to 'WorkerForm.cs')
-rw-r--r-- | WorkerForm.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/WorkerForm.cs b/WorkerForm.cs index f055aadf..78e84c30 100644 --- a/WorkerForm.cs +++ b/WorkerForm.cs @@ -1035,9 +1035,10 @@ namespace com.clusterrr.hakchi_gui public static Image TakeScreenshot()
{
var clovershell = MainForm.Clovershell;
- var screenshot = new Bitmap(1280, 720, System.Drawing.Imaging.PixelFormat.Format24bppRgb);
+ var screenshot = new Bitmap(1280, 720, PixelFormat.Format24bppRgb);
var rawStream = new MemoryStream();
- clovershell.Execute("hakchi uipause;cat /dev/fb0", null, rawStream, null, 1000, true);
+ clovershell.ExecuteSimple("hakchi uipause");
+ clovershell.Execute("cat /dev/fb0", null, rawStream, null, 1000, true);
clovershell.ExecuteSimple("hakchi uiresume");
var raw = rawStream.ToArray();
BitmapData data = screenshot.LockBits(
|