Add ScreenInfo render command for desktop size synchronization

This commit is contained in:
Stone_Red
2026-06-17 01:22:15 +02:00
parent 633ded2d62
commit 5cd1f6654b
4 changed files with 33 additions and 0 deletions
+10
View File
@@ -95,6 +95,11 @@ public class RenderCommand
WriteInt16(s, Position.X);
WriteInt16(s, Position.Y);
break;
case RenderCommandType.ScreenInfo:
WriteUInt16(s, GetProp("Width", 0));
WriteUInt16(s, GetProp("Height", 0));
break;
}
}
@@ -163,6 +168,11 @@ public class RenderCommand
case RenderCommandType.SetCursor:
pos = new Point(ReadInt16(data, ref offset), ReadInt16(data, ref offset));
break;
case RenderCommandType.ScreenInfo:
props["Width"] = ReadUInt16(data, ref offset);
props["Height"] = ReadUInt16(data, ref offset);
break;
}
return new RenderCommand