Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix compile errors.
  • Loading branch information
teo-tsirpanis committed Apr 19, 2022
commit 17ee4b48a1462ba8fc4e6acceb5215c03b66f144
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

namespace System.Drawing.Imaging
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public Pen(Color color, float width)
{
_color = color;

IntPtr pen = IntPtr.Zero;
IntPtr pen;
int status = Gdip.GdipCreatePen1(color.ToArgb(),
width,
(int)GraphicsUnit.World,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public SolidBrush(Color color)
{
_color = color;

IntPtr nativeBrush = IntPtr.Zero;
IntPtr nativeBrush;
int status = Gdip.GdipCreateSolidFill(_color.ToArgb(), out nativeBrush);
Gdip.CheckStatus(status);

Expand Down