those shouldnt be there, oops

This commit is contained in:
Elijah R 2024-01-03 18:22:53 -05:00
parent f35cd481dd
commit 563883a275
2 changed files with 0 additions and 3 deletions

View file

@ -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);

View file

@ -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,