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:
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(