Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-10-26 21:50:11 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-10-26 21:50:11 +0300
commitf95dfc0e02610fecb5981120d121ab7b4626a8ac (patch)
treeb5937474783fb2d85d7f85c4606e4b48425e3228 /WorkerForm.cs
parent3202bb9fca791d00858dc9168d6a6d7427446110 (diff)
Translations sync, fixes2.21f
Diffstat (limited to 'WorkerForm.cs')
-rw-r--r--WorkerForm.cs5
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(