-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Fix picture window not showing picture
- Loading branch information
1 parent
b0b2c63
commit fea9064
Showing
4 changed files
with
28 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,12 @@ | |
* Valentin Charbonnier <[email protected]> | ||
*/ | ||
|
||
using Aura_OS.System.Processing.Applications; | ||
using Aura_OS.System.Processing.Processes; | ||
using Cosmos.System.Graphics; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using Cosmos.System.Graphics; | ||
using Aura_OS.System.Processing.Applications; | ||
using Aura_OS.System.Processing.Processes; | ||
|
||
namespace Aura_OS.System.Processing.Interpreter.Commands.Filesystem | ||
{ | ||
|
@@ -21,7 +21,7 @@ class CommandPicture : ICommand | |
/// </summary> | ||
public CommandPicture(string[] commandvalues) : base(commandvalues, CommandType.Filesystem) | ||
{ | ||
Description = "to display a bitmap in a new window."; | ||
Description = "to display a bitmap in a new window"; | ||
} | ||
|
||
public override ReturnInfo Execute(List<string> arguments) | ||
|
@@ -41,10 +41,10 @@ public override ReturnInfo Execute(List<string> arguments) | |
|
||
if (width < bitmap.Width) | ||
{ | ||
width = (int)bitmap.Width + 1; | ||
width = (int)bitmap.Width + 6; | ||
} | ||
|
||
var app = new PictureApp(name, bitmap, width, (int)bitmap.Height + 20); | ||
var app = new PictureApp(name, bitmap, width, (int)bitmap.Height + 26, 40, 40); | ||
app.MarkFocused(); | ||
app.Initialize(); | ||
app.Visible = true; | ||
|
@@ -67,7 +67,7 @@ public override ReturnInfo Execute(List<string> arguments) | |
public override void PrintHelp() | ||
{ | ||
Console.WriteLine("Usage:"); | ||
Console.WriteLine(" - cp {source_file/directory} {destination_file/directory}"); | ||
Console.WriteLine(" - pic {source_file}"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters