mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-04 09:06:23 +02:00
Add DesktopProcess and start-gui command for launching GUI mode
This commit is contained in:
@@ -85,6 +85,12 @@ public sealed class Window(string title, int processId, int id, IRenderSource re
|
||||
return uiElement;
|
||||
}
|
||||
|
||||
public void Invalidate()
|
||||
{
|
||||
isFirstRender = true;
|
||||
Flush();
|
||||
}
|
||||
|
||||
public void Flush()
|
||||
{
|
||||
if (!IsVisible)
|
||||
|
||||
@@ -140,6 +140,17 @@ public static class WindowManager
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void InvalidateAll()
|
||||
{
|
||||
foreach (var processWindows in windows.Values)
|
||||
{
|
||||
foreach (var window in processWindows)
|
||||
{
|
||||
window.Invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static int GetNextWindowId()
|
||||
{
|
||||
return nextWindowId++;
|
||||
|
||||
Reference in New Issue
Block a user