Browse Source

Fixed typo in DrawRectangle.

Closes #222.
Steven Kirk 10 years ago
parent
commit
b731b339cd

+ 1 - 1
src/Gtk/Perspex.Cairo/Media/DrawingContext.cs

@@ -160,7 +160,7 @@ namespace Perspex.Cairo.Media
         /// </summary>
         /// <param name="pen">The pen.</param>
         /// <param name="rect">The rectangle bounds.</param>
-        public void DrawRectange(Pen pen, Rect rect, float cornerRadius)
+        public void DrawRectangle(Pen pen, Rect rect, float cornerRadius)
         {
 			using (var p = SetPen(pen, rect.Size)) 
 			{

+ 1 - 1
src/Perspex.Controls/Border.cs

@@ -98,7 +98,7 @@ namespace Perspex.Controls
 
             if (borderBrush != null && borderThickness > 0)
             {
-                context.DrawRectange(new Pen(borderBrush, borderThickness), rect, cornerRadius);
+                context.DrawRectangle(new Pen(borderBrush, borderThickness), rect, cornerRadius);
             }
         }
 

+ 1 - 1
src/Perspex.HtmlRenderer/Adapters/GraphicsAdapter.cs

@@ -244,7 +244,7 @@ namespace TheArtOfDev.HtmlRenderer.Perspex.Adapters
                 x += .5;
                 y += .5;
             }
-            _g.DrawRectange(((PenAdapter) pen).CreatePen(), new Rect(x, y, width, height));
+            _g.DrawRectangle(((PenAdapter) pen).CreatePen(), new Rect(x, y, width, height));
         }
 
         public override void DrawRectangle(RBrush brush, double x, double y, double width, double height)

+ 1 - 1
src/Perspex.SceneGraph/Media/IDrawingContext.cs

@@ -47,7 +47,7 @@ namespace Perspex.Media
         /// <param name="pen">The pen.</param>
         /// <param name="rect">The rectangle bounds.</param>
         /// <param name="cornerRadius">The corner radius.</param>
-        void DrawRectange(Pen pen, Rect rect, float cornerRadius = 0.0f);
+        void DrawRectangle(Pen pen, Rect rect, float cornerRadius = 0.0f);
 
         /// <summary>
         /// Draws text.

+ 1 - 1
src/Windows/Perspex.Direct2D1/Media/DrawingContext.cs

@@ -143,7 +143,7 @@ namespace Perspex.Direct2D1.Media
         /// <param name="pen">The pen.</param>
         /// <param name="rect">The rectangle bounds.</param>
         /// <param name="cornerRadius">The corner radius.</param>
-        public void DrawRectange(Pen pen, Rect rect, float cornerRadius)
+        public void DrawRectangle(Pen pen, Rect rect, float cornerRadius)
         {
             using (var brush = CreateBrush(pen.Brush, rect.Size))
             using (var d2dStroke = pen.ToDirect2DStrokeStyle(_renderTarget))