those shouldnt be there, oops
This commit is contained in:
parent
f35cd481dd
commit
563883a275
2 changed files with 0 additions and 3 deletions
|
@ -77,9 +77,7 @@ public class VM
|
|||
{
|
||||
if (screenHidden) return Program.ScreenHiddenThumb;
|
||||
var fb = await this.Controller.GetFramebufferData();
|
||||
Console.WriteLine($"got fb, size {Controller.FramebufferWidth}x{Controller.FramebufferHeight}");
|
||||
var thmb = Image.LoadPixelData<Rgba32>(fb, Controller.FramebufferWidth, Controller.FramebufferHeight);
|
||||
Console.WriteLine("loaded into image");
|
||||
thmb.Mutate(ctx => ctx.Resize(400, 300));
|
||||
await using var ms = new MemoryStream();
|
||||
await thmb.SaveAsJpegAsync(ms);
|
||||
|
|
|
@ -56,7 +56,6 @@ public class VMManager
|
|||
{
|
||||
if (!vm.Controller.IsRunning) continue;
|
||||
var thumb = await vm.GetThumbnail();
|
||||
Console.WriteLine("got thumbnail");
|
||||
list.Add(new ListVM()
|
||||
{
|
||||
ID = vm.Config.ID,
|
||||
|
|
Loading…
Reference in a new issue