Replace F extension with string interpolation
This commit is contained in:
@@ -37,7 +37,7 @@ namespace OpenRA.Platforms.Default
|
||||
{
|
||||
surface = SDL.SDL_CreateRGBSurface(0, size.Width, size.Height, 32, 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000);
|
||||
if (surface == IntPtr.Zero)
|
||||
throw new InvalidDataException("Failed to create surface: {0}".F(SDL.SDL_GetError()));
|
||||
throw new InvalidDataException($"Failed to create surface: {SDL.SDL_GetError()}");
|
||||
|
||||
var sur = (SDL.SDL_Surface)Marshal.PtrToStructure(surface, typeof(SDL.SDL_Surface));
|
||||
Marshal.Copy(data, 0, sur.pixels, data.Length);
|
||||
@@ -47,7 +47,7 @@ namespace OpenRA.Platforms.Default
|
||||
Cursor = SDL.SDL_CreateColorCursor(surface, hotspot.X, hotspot.Y);
|
||||
|
||||
if (Cursor == IntPtr.Zero)
|
||||
throw new Sdl2HardwareCursorException("Failed to create cursor: {0}".F(SDL.SDL_GetError()));
|
||||
throw new Sdl2HardwareCursorException($"Failed to create cursor: {SDL.SDL_GetError()}");
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user