Fix: add missing System.Collections.Generic import and remove unused var

Also tidies build warnings from Unit 3 changes.
This commit is contained in:
2026-10-05 13:39:42 -07:00
parent 0464593a02
commit bdea18e12c
2 changed files with 3 additions and 8 deletions
+2 -7
View File
@@ -1,3 +1,4 @@
using System.Collections.Generic;
using ytLive.Helpers;
using ytLive.Models;
@@ -624,13 +625,7 @@ public sealed class SceneCompositor
Buffer.BlockCopy(src.BgraPixels, 0, dst, 0, dstW * dstH * 4);
return;
}
// Fully opaque source, covering entire destination canvas
if (op == 256 && src.IsOpaque && x0 == 0 && y0 == 0 && x1 == dstW && y1 == dstH)
{
Buffer.BlockCopy(src.BgraPixels, 0, dst, 0, dstW * dstH * 4);
return;
}
// Opaque source with 1:1 aligned region covering full canvas? treat same
// Opaque source with 1:1 aligned region covering full canvas
if (op == 256 && src.IsOpaque && ex == 0 && ey == 0 && src.Width == dstW && src.Height == dstH)
{
Buffer.BlockCopy(src.BgraPixels, 0, dst, 0, dstW * dstH * 4);