Skip to content

🐛 Fix change resolution command #262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions SRC/Aura_OS/Kernel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,7 @@ public static void BeforeRun()

aConsole = null;

Desktop = new Desktop(0, 0, (int)screenWidth, (int)screenHeight);

// CustomConsole.WriteLineInfo("Starting dock...");
Taskbar = new Taskbar();
Taskbar.Initialize();

Taskbar.UpdateApplicationButtons();
StartUI();

//START MOUSE
MouseManager.ScreenWidth = screenWidth;
Expand All @@ -174,6 +168,17 @@ public static void BeforeRun()
Running = true;
}

public static void StartUI()
{
Desktop = new Desktop(0, 0, (int)screenWidth, (int)screenHeight);

// CustomConsole.WriteLineInfo("Starting dock...");
Taskbar = new Taskbar();
Taskbar.Initialize();

Taskbar.UpdateApplicationButtons();
}

public static void Run()
{
try
Expand Down Expand Up @@ -218,6 +223,8 @@ public static void Run()

private static void UpdateUI()
{
canvas.Clear(0x000000);

Desktop.Update();
Desktop.Draw();

Expand Down
2 changes: 1 addition & 1 deletion SRC/Aura_OS/Properties/VersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ namespace Aura_OS
{
public class VersionInfo
{
public static string revision = "231220230551";
public static string revision = "231220230608";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,13 @@ public override ReturnInfo Execute(List<string> arguments)
Cosmos.System.MouseManager.ScreenWidth = width;
Cosmos.System.MouseManager.ScreenHeight = height;

Kernel.screenWidth = width;
Kernel.screenHeight = height;

Kernel.canvas = FullScreenCanvas.GetFullScreenCanvas(new Mode(width, height, ColorDepth.ColorDepth32));

Kernel.StartUI();

return new ReturnInfo(this, ReturnCode.OK);
}
else
Expand Down