diff --git a/Demos/CosmosGraphicSubsystem/CosmosGraphicSubsystemBoot.Cosmos b/Demos/CosmosGraphicSubsystem/CosmosGraphicSubsystemBoot.Cosmos index 730dd2ec8..ecc8dc28f 100644 --- a/Demos/CosmosGraphicSubsystem/CosmosGraphicSubsystemBoot.Cosmos +++ b/Demos/CosmosGraphicSubsystem/CosmosGraphicSubsystemBoot.Cosmos @@ -68,26 +68,6 @@ - - Cosmos.Core.Plugs.Asm - {3c186d37-21c3-417c-95f1-19be538af88a} - True - - - Cosmos.Core.Plugs - {1132e689-18b0-4d87-94e8-934d4802c540} - True - - - Cosmos.Debug.Kernel.Plugs.Asm - {7e450662-b34c-49b0-a826-f45ad3a18891} - True - - - Cosmos.System.Plugs - {9431ff1f-ad75-4a1e-b38a-46e0f109411d} - True - CosmosGraphicSubsystem {49f2c01d-d2c5-4564-810b-1ae92236c5c1} @@ -95,4 +75,4 @@ - + \ No newline at end of file diff --git a/Demos/CosmosGraphicSubsystem/Kernel.cs b/Demos/CosmosGraphicSubsystem/Kernel.cs index 04f4fe8d7..394e0d511 100644 --- a/Demos/CosmosGraphicSubsystem/Kernel.cs +++ b/Demos/CosmosGraphicSubsystem/Kernel.cs @@ -70,6 +70,10 @@ namespace Cosmos_Graphic_Subsytem pen.Color = Color.LimeGreen; canvas.DrawRectangle(pen, 450, 450, 80, 60); + /* A filled rectange */ + pen.Color = Color.Chocolate; + canvas.DrawFilledRectangle(pen, 200, 150, 400, 300); + /* * It will be really beautiful to do here: * canvas.DrawString(pen, "Please press any key to end the Demo..."); diff --git a/install-VS2017.bat b/install-VS2017.bat index c4c4bf59e..8dd2286a1 100644 --- a/install-VS2017.bat +++ b/install-VS2017.bat @@ -3,20 +3,6 @@ cls set NuGet=Build\Tools\nuget.exe set VSWhere=Build\Tools\vswhere.exe -set IL2CPU=..\IL2CPU\IL2CPU.sln -set XS=..\XSharp\XSharp.sln - -echo Finding XSharp repo directory -IF EXIST %XS% (echo XSharp solution found!) else ( -echo XSharp not found! -goto NOI2CXS -) - -echo Looking for IL2CPU repo directory... -IF EXIST %IL2CPU% (echo IL2CPU solution found!) else ( -echo IL2CPU not found! -goto NOI2CXS ) - :NuGet echo Running NuGet restore @@ -38,9 +24,4 @@ if exist %MSBuild% ( ) -start "Cosmos Builder" "source\Cosmos.Build.Builder\bin\Debug\Cosmos.Build.Builder.exe" "-VSPATH=%InstallDir%" %1 %2 %3 %4 %5 %6 %7 %8 %9 - - -:NOI2CXS -echo install-vs2017.bat failed to find the required IL2CPU or XSharp directories -echo Be sure to see the Cosmos documentation for instructions on building Cosmos \ No newline at end of file +start "Cosmos Builder" "source\Cosmos.Build.Builder\bin\Debug\Cosmos.Build.Builder.exe" "-VSPATH=%InstallDir%" %1 %2 %3 %4 %5 %6 %7 %8 %9 \ No newline at end of file diff --git a/source/Cosmos.System2/Graphics/Canvas.cs b/source/Cosmos.System2/Graphics/Canvas.cs index 21d67074a..94f6e80fe 100644 --- a/source/Cosmos.System2/Graphics/Canvas.cs +++ b/source/Cosmos.System2/Graphics/Canvas.cs @@ -325,10 +325,9 @@ namespace Cosmos.System.Graphics public virtual void DrawFilledRectangle(Pen pen, int x_start, int y_start, int width, int height) { - for (int i = 0; i != width; i++) + for (int y = y_start; y < y_start + height; y++) { - DrawLine(pen, x_start, y_start, x_start + height, y_start); - y_start++; + DrawLine(pen, x_start, y, x_start + width - 1, y); } }