[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-patches
Subject:    [Mono-patches] r120299 - in trunk/mcs/class/Mono.Cairo: . Mono.Cairo
From:       "Jordi Mas (jmas () softcatala ! org)" <mono-patches-list () lists ! ximian ! com>
Date:       2008-11-30 16:13:30
Message-ID: 20081130161330.584F99472C () mono-cvs ! ximian ! com
[Download RAW message or body]

Author: jordi
Date: 2008-11-30 11:13:29 -0500 (Sun, 30 Nov 2008)
New Revision: 120299

Modified:
   trunk/mcs/class/Mono.Cairo/ChangeLog
   trunk/mcs/class/Mono.Cairo/Mono.Cairo/ImageSurface.cs
Log:
2008-11-30 Jordi Mas i Hernandez <jordimash@gmail.com>

	* Mono.Cairo/ImageSurface.cs: Fixes ImageSurface constructor signature.
        Data param should not be ref since the data is not modified.



Modified: trunk/mcs/class/Mono.Cairo/ChangeLog
===================================================================
--- trunk/mcs/class/Mono.Cairo/ChangeLog	2008-11-30 12:28:00 UTC (rev 120298)
+++ trunk/mcs/class/Mono.Cairo/ChangeLog	2008-11-30 16:13:29 UTC (rev 120299)
@@ -1,3 +1,8 @@
+2008-11-30 Jordi Mas i Hernandez <jordimash@gmail.com>
+
+	* Mono.Cairo/ImageSurface.cs: Fixes ImageSurface constructor signature.
+        Data param should not be ref since the data is not modified.
+
 2008-05-14  Sebastien Pouliot  <sebastien@ximian.com>
 
 	* Mono.Cairo/Context.cs,

Modified: trunk/mcs/class/Mono.Cairo/Mono.Cairo/ImageSurface.cs
===================================================================
--- trunk/mcs/class/Mono.Cairo/Mono.Cairo/ImageSurface.cs	2008-11-30 12:28:00 UTC \
                (rev 120298)
+++ trunk/mcs/class/Mono.Cairo/Mono.Cairo/ImageSurface.cs	2008-11-30 16:13:29 UTC \
(rev 120299) @@ -50,8 +50,13 @@
 				surfaces [surface] = this;
 			}
 		}
+		
+		[Obsolete ("Use ImageSurface (byte[] data, Cairo.Format format, int width, int \
height, int stride)")] +		public ImageSurface (ref byte[] data, Cairo.Format format, \
int width, int height, int stride) :this (data, format, width, height, stride) +		{
+		}
 
-		public ImageSurface (ref byte[] data, Cairo.Format format, int width, int height, \
int stride) +		public ImageSurface (byte[] data, Cairo.Format format, int width, int \
height, int stride)  {
 			surface = NativeMethods.cairo_image_surface_create_for_data (data, format, width, \
height, stride);  lock (surfaces.SyncRoot){

_______________________________________________
Mono-patches maillist  -  Mono-patches@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic