Replace F extension with string interpolation
This commit is contained in:
@@ -82,7 +82,7 @@ namespace OpenRA.Platforms.Default
|
||||
{
|
||||
VerifyThreadAffinity();
|
||||
if (!Exts.IsPowerOf2(width) || !Exts.IsPowerOf2(height))
|
||||
throw new InvalidDataException("Non-power-of-two array {0}x{1}".F(width, height));
|
||||
throw new InvalidDataException($"Non-power-of-two array {width}x{height}");
|
||||
|
||||
Size = new Size(width, height);
|
||||
unsafe
|
||||
@@ -100,7 +100,7 @@ namespace OpenRA.Platforms.Default
|
||||
var height = colors.GetUpperBound(0) + 1;
|
||||
|
||||
if (!Exts.IsPowerOf2(width) || !Exts.IsPowerOf2(height))
|
||||
throw new InvalidDataException("Non-power-of-two array {0}x{1}".F(width, height));
|
||||
throw new InvalidDataException($"Non-power-of-two array {width}x{height}");
|
||||
|
||||
Size = new Size(width, height);
|
||||
unsafe
|
||||
@@ -180,7 +180,7 @@ namespace OpenRA.Platforms.Default
|
||||
{
|
||||
VerifyThreadAffinity();
|
||||
if (!Exts.IsPowerOf2(width) || !Exts.IsPowerOf2(height))
|
||||
throw new InvalidDataException("Non-power-of-two array {0}x{1}".F(width, height));
|
||||
throw new InvalidDataException($"Non-power-of-two array {width}x{height}");
|
||||
|
||||
Size = new Size(width, height);
|
||||
SetData(IntPtr.Zero, width, height);
|
||||
|
||||
Reference in New Issue
Block a user