mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-07 23:41:47 +02:00
Add ScreenInfo render command for desktop size synchronization
This commit is contained in:
@@ -26,6 +26,7 @@ public sealed class CanvasRenderSource : IRenderSource
|
||||
private static Point lastPointerPosition = new(-1, -1);
|
||||
|
||||
private static Point cursorPosition;
|
||||
private static int screenWidth, screenHeight;
|
||||
|
||||
private static readonly Lock renderLock = new();
|
||||
|
||||
@@ -62,6 +63,12 @@ public sealed class CanvasRenderSource : IRenderSource
|
||||
isPositionDirty = true;
|
||||
break;
|
||||
|
||||
case RenderCommandType.ScreenInfo:
|
||||
screenWidth = Get(command.Properties, "Width", 640);
|
||||
screenHeight = Get(command.Properties, "Height", 480);
|
||||
isPositionDirty = true;
|
||||
break;
|
||||
|
||||
default:
|
||||
if (windowCanvases.ContainsKey(command.WindowId))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user