Author: miguel
Date: 2005-05-05 16:24:21 -0400 (Thu, 05 May 2005)
New Revision: 44094

Modified:
   trunk/mcs/class/System.Drawing/System.Drawing/Bitmap.cs
   trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog
   trunk/mcs/class/System.Drawing/System.Drawing/Icon.cs
Log:
2005-05-05  Miguel de Icaza  <[EMAIL PROTECTED]>

        * Bitmap.cs, Icon.cs (constructor): Use
        GetManifestResourceStream(Type,string) in the constructor that
        takes a type. 

Modified: trunk/mcs/class/System.Drawing/System.Drawing/Bitmap.cs
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing/Bitmap.cs     2005-05-05 
17:31:47 UTC (rev 44093)
+++ trunk/mcs/class/System.Drawing/System.Drawing/Bitmap.cs     2005-05-05 
20:24:21 UTC (rev 44094)
@@ -154,7 +154,7 @@
 
                public Bitmap (Type type, string resource)
                {
-                       using (Stream s = 
type.Assembly.GetManifestResourceStream (resource)){
+                       using (Stream s = 
type.Assembly.GetManifestResourceStream (type, resource)){
                                if (s == null)
                                        throw new FileNotFoundException 
("Resource name was not found: `" + resource + "'");
 

Modified: trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog     2005-05-05 
17:31:47 UTC (rev 44093)
+++ trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog     2005-05-05 
20:24:21 UTC (rev 44094)
@@ -1,3 +1,9 @@
+2005-05-05  Miguel de Icaza  <[EMAIL PROTECTED]>
+
+       * Bitmap.cs, Icon.cs (constructor): Use
+       GetManifestResourceStream(Type,string) in the constructor that
+       takes a type. 
+
 2005-04-27  Lluis Sanchez Gual  <[EMAIL PROTECTED]>
 
        * PointF.cs: Make serialization compatible with MS.

Modified: trunk/mcs/class/System.Drawing/System.Drawing/Icon.cs
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing/Icon.cs       2005-05-05 
17:31:47 UTC (rev 44093)
+++ trunk/mcs/class/System.Drawing/System.Drawing/Icon.cs       2005-05-05 
20:24:21 UTC (rev 44094)
@@ -153,7 +153,7 @@
 
                public Icon (Type type, string resource)
                {
-                       using (Stream s = 
type.Assembly.GetManifestResourceStream (resource)) {
+                       using (Stream s = 
type.Assembly.GetManifestResourceStream (type, resource)) {
                                if (s == null) {
                                        throw new FileNotFoundException 
("Resource name was not found: `" + resource + "'");
                                }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to