Changed code to use object initializers everywhere

This commit is contained in:
penev92
2022-01-20 01:07:24 +02:00
committed by abcdefg30
parent 70e2769a85
commit ab09ce21b4
9 changed files with 58 additions and 31 deletions

View File

@@ -193,9 +193,12 @@ namespace OpenRA.Platforms.Default
// Attempt to automatically detect DPI
try
{
var psi = new ProcessStartInfo("/usr/bin/xrdb", "-query");
psi.UseShellExecute = false;
psi.RedirectStandardOutput = true;
var psi = new ProcessStartInfo("/usr/bin/xrdb", "-query")
{
UseShellExecute = false,
RedirectStandardOutput = true
};
var p = Process.Start(psi);
var lines = p.StandardOutput.ReadToEnd().Split('\n');