فهرست منبع

removed unused variables

svn path=/trunk/mcs/; revision=36532
Marek Safar 21 سال پیش
والد
کامیت
f405a09600

+ 4 - 0
mcs/class/System.Drawing/System.Drawing.Imaging/ChangeLog

@@ -1,3 +1,7 @@
+2004-11-25  Marek Safar  <[email protected]>
+
+	* ColorPalette.cs: Add CheckStatus to GetAdjustedPalette.
+
 2004-11-03  Miguel de Icaza  <[email protected]>
 
 	* ColorPalette.cs: Add internal Clone method

+ 1 - 1
mcs/class/System.Drawing/System.Drawing.Imaging/ImageAttributes.cs

@@ -260,7 +260,7 @@ namespace System.Drawing.Imaging
     				out colorPalette,  type);
     				
     			palette.setFromGDIPalette (colorPalette);
-			
+			GDIPlus.CheckStatus (status);
 		}		
 		
 		public void SetBrushRemapTable(ColorMap[] map)

+ 0 - 2
mcs/class/System.Drawing/System.Drawing.Imaging/ImageCodecInfo.cs

@@ -67,7 +67,6 @@ namespace System.Drawing.Imaging {
 		{			
 			int decoderNums, arraySize, decoder_ptr, decoder_size;
 			IntPtr decoders;
-			ImageCodecInfo codecinfo = new ImageCodecInfo();
 			ImageCodecInfo[] result;
 			GdipImageCodecInfo gdipdecoder = new GdipImageCodecInfo();
 			Status status;
@@ -104,7 +103,6 @@ namespace System.Drawing.Imaging {
 		{
 			int encoderNums, arraySize, encoder_ptr, encoder_size;
 			IntPtr encoders;
-			ImageCodecInfo codecinfo = new ImageCodecInfo();
 			ImageCodecInfo[] result;
 			GdipImageCodecInfo gdipencoder = new GdipImageCodecInfo();
 			Status status;

+ 2 - 1
mcs/class/System.Drawing/System.Drawing.Text/FontCollection.cs

@@ -65,7 +65,8 @@ namespace System.Drawing.Text {
 				Status status;
 				FontFamily[] families;
 				
-				status = GDIPlus.GdipGetFontCollectionFamilyCount (nativeFontCollection, out found);
+				status = GDIPlus.GdipGetFontCollectionFamilyCount (nativeFontCollection, out found);
+				GDIPlus.CheckStatus (status);
 				
 				int nSize =  Marshal.SizeOf (IntPtr.Zero);
 				IntPtr dest = Marshal.AllocHGlobal (nSize * found);           

+ 4 - 0
mcs/class/System.Drawing/System.Drawing.Text/changelog

@@ -1,3 +1,7 @@
+2004-11-25  Marek Safar  <[email protected]>
+
+	* Image.cs: Add CheckStatus to Families.
+
 2004-02-25  Andreas Nahr <[email protected]>
 
 	* PrivateFontCollection.cs: Removed excess attributes

+ 1 - 1
mcs/class/System.Drawing/System.Drawing/Brush.cs

@@ -89,7 +89,7 @@ namespace System.Drawing
 		{
 			lock (this){
 				if (disposed == false) {
-					Status status = GDIPlus.GdipDeleteBrush (nativeObject);
+					GDIPlus.GdipDeleteBrush (nativeObject);
 					disposed = true;
 					nativeObject = IntPtr.Zero;
 				}

+ 4 - 0
mcs/class/System.Drawing/System.Drawing/ChangeLog

@@ -1,3 +1,7 @@
+2004-11-25  Marek Safar  <[email protected]>
+
+	* Image.cs: Add CheckStatus to SaveAdd.
+
 2004-11-22  Ravindra  <[email protected]>
 
 	* Graphics.cs: Fixed null values handling in all overloads of

+ 1 - 1
mcs/class/System.Drawing/System.Drawing/Font.cs

@@ -499,7 +499,7 @@ namespace System.Drawing
 		{
 			IntPtr newObject;
 			LOGFONTA o = (LOGFONTA)lf;
-			int l = GDIPlus.GdipCreateFontFromLogfontA (hdc, ref o, out newObject);
+			GDIPlus.GdipCreateFontFromLogfontA (hdc, ref o, out newObject);
 			return new Font (newObject, "Microsoft Sans Serif", FontStyle.Regular, 10);
 		}
 

+ 4 - 2
mcs/class/System.Drawing/System.Drawing/Image.cs

@@ -409,7 +409,8 @@ public abstract class Image : MarshalByRefObject, IDisposable , ICloneable, ISer
 		
 		IntPtr nativeEncoderParams = encoderParams.ToNativePtr ();
 		st = GDIPlus.GdipSaveAdd (nativeObject, nativeEncoderParams);
-		Marshal.FreeHGlobal (nativeEncoderParams);
+		Marshal.FreeHGlobal (nativeEncoderParams);
+		GDIPlus.CheckStatus (st);
 	}
 		
 	public void SaveAdd (Image image, EncoderParameters encoderParams)
@@ -418,7 +419,8 @@ public abstract class Image : MarshalByRefObject, IDisposable , ICloneable, ISer
 		
 		IntPtr nativeEncoderParams = encoderParams.ToNativePtr ();
 		st = GDIPlus.GdipSaveAddImage (nativeObject, image.NativeObject, nativeEncoderParams);
-		Marshal.FreeHGlobal (nativeEncoderParams);
+		Marshal.FreeHGlobal (nativeEncoderParams);
+		GDIPlus.CheckStatus (st);
 	}
 		
 	public int SelectActiveFrame(FrameDimension dimension, int frameIndex)