[corlib] Improve CancellationTokenSource test
[mono.git] / mcs / class / System.Drawing / System.Drawing / ChangeLog
index 7e01a75b2045d5f5b10b9c2c68e25e545b56b4a1..3f744aa254fb0a42f54ccd43ccec505a28658bd0 100644 (file)
@@ -1,3 +1,269 @@
+2010-07-19  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Icon.cs: Remove width==height check when deserializing (uncommon
+       but valid icons). Fix bug #581400
+
+2010-07-16  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Graphics.cs (CopyFromScreen): Avoid crash if asked for a region
+       to big for XGetImage to return. Fix bug #582823
+
+2010-03-01  Miguel de Icaza  <miguel@novell.com>
+
+       * Point.cs: Fix #554635, our constructor that takes an int had the
+       values for X and Y swapped out.
+
+2009-10-13 Marek Safar  <marek.safar@gmail.com>
+
+       * KnownColors.cs: FindColorMatch has to match only predefined color
+       names ignoring system elements.
+
+       * ColorTranslator.cs: Add more predefined names.
+
+2009-07-15 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * Font.cs: implement OriginalFontName.
+
+2009-07-15  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * gdipFunctions.cs: Fix XVisualIDFromVisual to return an IntPtr
+       since 64 bits X servers will return a 64 bits value.
+       * gdipStructs.cs: Fix XVisualInfo to use IntPtr on fields that
+       are 64 bits on 64 bits X servers.
+       * Graphics.cs: Adjust CopyFromScreenX11 to work with IntPtr so the
+       screenshot code can work on both 32 and 64 bits X servers.
+       [Fix bug #521718]
+
+2008-11-24  Geoff Norton  <gnorton@novell.com>
+
+       * gdipFunctions.cs: Ensure that System.Drawing works on the mac as 
+       well as unix.
+
+2008-11-21  Andreia Gaita  <shana@jitted.com>
+
+       * Image.cs: On win32, when cloning images initialized from
+       resources, also clone the underlying stream, since it needs to stay
+       around for the life of the image (gdi doesn't clone the underlying
+       stream when cloning images, so when the gc disposes the original, it
+       will also dispose the stream, which invalidates the clone).
+
+       * Bitmap.cs: Save the underlying stream when creating bitmaps from a
+       clone under win32
+       [fixes #438886]
+
+2008-11-01  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Font.cs: Add comment on .ctor(Font,FontStyle) about the lack of
+       null check (compatibility). Add proper (yet compatible ;-) null check
+       to GetHeight(Graphics)
+
+2008-10-06  Sebastien Pouliot  <sebastien@ximian.com> 
+
+       * Color.cs: Fix Color serialization by changing 'value' visibility
+       to private and make everyone access it thru an internal property. 
+       This also simplify the A, R, G and B properties and probably covers 
+       a few other cases where a similar hack would have been required.
+       [Fix bug #410693]
+       * KnownColors.cs: Assign Color.Value property and not the value field.
+       * RectangleF.cs: Fix edge intersection. Path by Brian Browning.
+       [Fix bug #431587]
+
+2008-08-08  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * Icon.cs (InitFromStreamWithSize): Use temp ArrayList for IconDirEntry
+       to avoid empty slots in array. Use actual index of IconDirEntry in
+       array when entries have been skipped. Fixes bug #415581.
+
+2008-08-06  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * Icon.cs (InitFromStreamWithSize): Move init of iconDir.idCount
+       and imageData until after the number of entries was determined to
+       cope with skipping of 256x256 icons. Fixes bug #410608.
+
+2008-07-14  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * gdipFunctions.cs: Fix signature for 
+       GdipGetImageAttributesAdjustedPalette
+       [Part of fix for bug #402172]
+
+2008-07-07  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Bitmap.cs: Fix exceptions for some ctors.
+       * Image.cs: Throw ArgumentNullException for null streams.
+       [Fix bug #406763]
+
+2008-07-03  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Image.cs: throw NotImplementedException in SetPropertyItem
+       instead of executing broken code. See #406307 for test case.
+
+2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * SizeConverter.cs: Fallback to CultureInfo.CurrentCulture 
+       if supplied culture is null.
+       * PointConverter.cs: Fallback to CultureInfo.CurrentCulture 
+       if supplied culture is null.
+
+2008-05-26  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * Bitmap.cs: Changed argument names to match MS.
+       * CharacterRange.cs: Changed argument names to match MS. 
+       * Color.cs: Changed argument names to match MS.
+       * Font.cs: Changed argument names to match MS.
+       * FontFamily.cs: Changed argument names to match MS.
+       * Graphics.cs: Changed argument names to match MS.
+       * Image.cs: Changed argument names to match MS.
+       * Icon.cs: Changed argument names to match MS.
+       * IconConverter.cs: Changed argument names to match MS.
+       * ImageAnimator.cs: Changed argument names to match MS.
+       * ImageConverter.cs: Changed argument names to match MS.
+       * ImageFormatConverter.cs: Changed argument names to match MS.
+       * Point.cs: Changed argument names to match MS.
+       * PointF.cs: Changed argument names to match MS.
+       * Rectangle.cs: Changed argument names to match MS.
+       * RectangleF.cs: Changed argument names to match MS.
+       * Region.cs: Changed argument names to match MS.
+       * Size.cs: Changed argument names to match MS.
+       * SizeF.cs: Changed argument names to match MS.
+       * StringFormat.cs: Changed argument names to match MS.
+       * SystemFonts.cs: Changed argument names to match MS.
+       * TextureBrush.cs: Changed argument names to match MS.
+
+2008-05-19  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * CharacterRange.cs,
+       * ColorConverter.cs,
+       * PointConverter.cs,
+       * RectangleConverter.cs,
+       * SizeConverter.cs,
+       * SizeFConverter.cs: Avoid unboxing structs more than one time.
+       [Found using Gendarme]
+
+2008-05-18  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Font.cs: Add comment that downcasting the IntPtr is not an 
+       issue in this case (offset) since the next API requires it.
+       * Icon.cs: Use String.IsNullOrEmpty inside 2.0 code.
+       [Found using Gendarme]
+
+2008-05-14  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Graphics.cs: Throw a NotSupportedException if we're ask to create
+       a Graphics from a handle and X is not available (i.e. XOpenDisplay 
+       returns NULL). Easier to diagnose than a SIGSEGV
+
+2008-03-28  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * IconConverter.cs: Convert null to "(none)".
+
+2008-03-26  Kornél Pál  <kornelpal@gmail.com>
+
+       * ComIStreamWrapper.cs: Seek: remove read-only case. CopyTo: avoid allocating
+       large buffer. Commit: call SetSizeToPosition.
+
+2008-03-22  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Graphics.cs: Fix typo in exception and provide a bit more details.
+
+2008-03-21  Geoff Norton  <gnorton@novell.com>
+
+       * carbonFunctions.cs: Disable QDContext caching for now.  It's
+       causing crashes in the finalizer code.
+
+2008-03-06  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * ImageFormatConverter.cs: 
+        - String comparison should use the InvariantCulture.
+        - ConvertTo string should return the name for known image formats.
+        [Fixes bug #366570]
+
+2008-03-04  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Graphics.cs: Fix CopyFromScreen for X11 when source or destination
+       coordinates are not 0. Fix bug #363881.
+
+2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * ImageFormatConverter.cs: Perform a case insensitive comparison 
+       instead of a case sensitive one.
+       [Fixes bug #366567]
+
+2008-03-03  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Icon.cs: Don't require icon entries when creating a new icon 
+       (since they won't exist if we create the icon from an handle).
+       Also avoid a step when cloning. Fix bug #366485
+
+2008-02-10  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * gdipFunctions.cs: Seal GdiPlusStreamHelper class. Found using
+       Gendarme.
+       * carbonFunctions.cs: Seal Carbon class before 2.0, make it static
+       from 2.0. Issues reported by Gendarme.
+       * ColorConverter.cs: Seal internal IComparer class CompareColors. 
+       Found using Gendarme.
+       * FontConverter.cs: Don't ignore result of String.Trim. Found
+       using Gendarme.
+       * Graphics.cs: Document unused FillMode on DrawCloseCurve (part 
+       of the API but unused) and remove unused internal code. Both found
+       using Gendarme.
+       * SRDescriptionAttribute.cs: Seal internal attribute. Found using
+       Gendarme.
+
+2008-02-01  Geoff Norton  <gnorton@novell.com>
+
+       * carbonFunction.cs: More clipping fixes.  Include a variable to 
+       help debug future clipping problems by showing us the clipped mask.
+
+2008-02-01  Geoff Norton  <gnorton@novell.com>
+
+       * carbonFunctions.cs: Ensure we save/restore the GState before
+       modifying the clipping path as QD contexts can be reused.
+
+2008-02-01  Geoff Norton  <gnorton@novell.com>
+
+       * carbonFunction.cs:  Rework the clipping interaction with 
+       CoreGraphics.  Our old method was buggy in certain cases causing
+       improper / inefficient clip handling.
+
+2008-01-23  Geoff Norton  <gnorton@novell.com>
+
+       * carbonFunction.cs:  Remove some debug code.  Thanks spouliot.
+
+2008-01-23  Geoff Norton  <gnorton@novell.com>
+
+       * carbonFunctions.cs: Dont crash when we have an orphaned handle.
+
+2008-01-23  Geoff Norton  <gnorton@novell.com>
+
+       * carbonFunctions.cs: If we get a -ve size from carbon, swizzle to 
+       0 to prevent a OOM from cairo malloc.  Remove support for
+       GetCGContextForNSView as its deprecated and doesn't work.
+       * gdipFunctions.cs: Refactor the environment variable support out
+       and make the Carbon driver the default on a Mac.  Fix RunningOnUnix
+       to report true on the mac.
+       * Graphics.cs: Drop support for CocoaDrawable.
+
+2008-01-21  Geoff Norton  <gnorton@novell.com>
+
+       * Graphics.cs: Support Graphics.FromHwnd (IntPtr.Zero) on X11
+       * carbonFunctions.cs: Support for Graphics.FromHwnd (IntPtr.Zero)
+       on Carbon
+       * gdipFunctions.cs: Add XDefaultScreen overload.
+
+2008-01-13  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * gdipEnums.cs: Remove Unit enum since there's a public version
+       (GraphicsUnit) for it.
+       * gdipFunctions.cs: Make GDIPlus class static for 2.0 and remove
+       new lines (both warnings from Gendarme). Stop using Unit enum.
+       * Pen.cs: Stop using Unit enum.
+
+2008-01-08  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * Font.cs: Fix GetHashCode to use the same values as Equals. Fix 
+       bug #351647
+
 2007-12-19  Sebastien Pouliot  <sebastien@ximian.com>
 
        * Graphics.cs: Fix Point/PointF typo in FromUnManagedMemoryToPoint.