Commit Graph
1896 Commits
Author SHA1 Message Date
Miguel de Icaza 38253abf8c Add solution files 2011-02-12 22:09:49 -05:00
Ralph Leckett 80253e7210 [System.Drawing] Remove unnecessary verbosity 2010-12-10 23:07:07 -05:00
Ralph Leckett fcd9f10f29 [System.Drawing] On image load from stream errors, return null, not an exception 2010-12-10 23:05:55 -05:00
Geoff Norton e9c765654f Ensure we always save the GState, not just when the context is flipped 2010-12-09 00:46:48 -05:00
Geoff Norton a76b4352ab Ensure we save and restore the gstate 2010-12-06 14:40:25 -05:00
Geoff Norton 9bf59d4882 Ensure we properly translate the CTM for NSView's when dealing with flipped views
Patch from James Clancey <[email protected]>
2010-12-05 14:22:00 -05:00
Geoff Norton 14f0ab6aa1 Fix a potential NRE when using bitmap contexts 2010-11-19 23:33:13 -05:00
Marek Safar 1b0ef80b2f API compatibility work 2010-11-08 19:29:49 +00:00
Geoff Norton b51eba0323 [OSX] Reintroduce Cocoa System.Drawing support
The old Cocoa backend for System.Drawing appears to still work.  You must
pass in a NSView.Handle while in the DrawRect method, or with lockFocus
called to prepare the NSGraphicsContext.
2010-10-29 15:46:26 -04:00
Raja R Harinath cd51491631 Fix a few cases of mixed line-endings
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller.  I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
2010-07-26 02:20:13 +05:30
Raja R Harinath b293948fb7 EOL handling
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.

With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-25 20:17:39 +05:30
Sebastien Pouliot 451cfe2509 2009-07-20 Sebastien Pouliot <[email protected]>
* TestGraphics.cs: Add test case for #556181


svn path=/trunk/mcs/; revision=160639
2010-07-21 01:32:51 +00:00
Sebastien Pouliot 070d7e4c66 2010-07-19 Sebastien Pouliot <[email protected]>
* Icon.cs: Remove width==height check when deserializing (uncommon
	but valid icons). Fix bug #581400


svn path=/trunk/mcs/; revision=160580
2010-07-19 18:15:13 +00:00
Sebastien Pouliot f0cf4c78c7 2010-07-16 Sebastien Pouliot <[email protected]>
* Graphics.cs (CopyFromScreen): Avoid crash if asked for a region
	to big for XGetImage to return. Fix bug #582823


svn path=/trunk/mcs/; revision=160507
2010-07-16 23:51:18 +00:00
Sebastien Pouliot e3a9837c8f 2010-07-15 Sebastien Pouliot <[email protected]>
* LinearGradientBrushTest.cs: Add test case for #537396 (empty rects)


svn path=/trunk/mcs/; revision=160455
2010-07-15 18:40:52 +00:00
Jonathan Chambers 37d8cf2f6b 2010-06-15 Jonathan Chambers <[email protected]>
* Add more projects for net_2_0 profile build.

svn path=/trunk/mcs/; revision=158981
2010-06-15 22:24:14 +00:00
Miguel de Icaza 3a5a8424db 2010-03-01 Miguel de Icaza <[email protected]>
* Point.cs: Fix #554635, our constructor that takes an int had the
	values for X and Y swapped out.

svn path=/trunk/mcs/; revision=152650
2010-03-01 07:10:10 +00:00
Marek Safar 5ebec62786 2009-10-13 Marek Safar <[email protected]>
* KnownColors.cs: FindColorMatch has to match only predefined color
	names ignoring system elements.

	* ColorTranslator.cs: Add more predefined names.


svn path=/trunk/mcs/; revision=144019
2009-10-13 15:43:44 +00:00
Atsushi Eno c36e34c3bd 2009-08-28 Atsushi Enomoto <[email protected]>
* TestBlend.cs, TestMatrix.cs : nunit test upgrade to modern style.


svn path=/trunk/mcs/; revision=140869
2009-08-28 10:28:08 +00:00
Atsushi Eno 036afe79ce 2009-08-28 Atsushi Enomoto <[email protected]>
* TestColor.cs, TestPoint.cs, TestGraphics.cs, TestSystemBrushes.cs,
	  TestPens.cs, TestSize.cs, TestSystemPens.cs: nunit test upgrade.


svn path=/trunk/mcs/; revision=140868
2009-08-28 10:22:46 +00:00
Gonzalo Paniagua Javier a7ad6b8027 2009-07-15 Gonzalo Paniagua Javier <[email protected]>
* Font.cs: implement OriginalFontName.


svn path=/trunk/mcs/; revision=138012
2009-07-16 03:34:10 +00:00
Sebastien Pouliot c82f5c894c 2009-07-15 Sebastien Pouliot <[email protected]>
* 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]


svn path=/trunk/mcs/; revision=137982
2009-07-15 18:57:09 +00:00
Carlos Alberto Cortez a327820630 2009-07-09 Carlos Alberto Cortez <[email protected]>
* PageSourceTest.cs:
	* PaperSizeTest.cs: Include the new tests in NET_2_0 define, to fix
	the 1.1 build.


svn path=/trunk/mcs/; revision=137589
2009-07-08 23:40:55 +00:00
Carlos Alberto Cortez 907f350f53 2009-07-08 Carlos Alberto Cortez <[email protected]>
* System.Drawing_test.dll.sources: Add PageSourceTest.cs and
	PaperSizeTest.cs.


svn path=/trunk/mcs/; revision=137573
2009-07-08 16:26:12 +00:00
Carlos Alberto Cortez 3cbc62482a 2009-07-08 Carlos Alberto Cortez <[email protected]>
* PaperSource.cs: Implement RawKind.
	Fixes the remaining bits of #507739.


svn path=/trunk/mcs/; revision=137565
2009-07-08 13:13:58 +00:00
Carlos Alberto Cortez dc58173d51 2009-07-08 Carlos Alberto Cortez <[email protected]>
* PageSourceTest.cs: New file, by Andy Hume <[email protected]>


svn path=/trunk/mcs/; revision=137564
2009-07-08 12:56:29 +00:00
Carlos Alberto Cortez bba023dbd1 2009-07-08 Carlos Alberto Cortez <[email protected]>
* PaperSizeTest.cs: New file, by Andy Hume <[email protected]>


svn path=/trunk/mcs/; revision=137560
2009-07-08 12:01:07 +00:00
Carlos Alberto Cortez f1e3a57f5b 2009-07-08 Carlos Alberto Cortez <[email protected]>
* PaperSize.cs: Implement support for RawKind.
	Patch by Andy Hume ([email protected]).
	Fixes part of #507739.


svn path=/trunk/mcs/; revision=137559
2009-07-08 11:58:10 +00:00
Carlos Alberto Cortez 207d41b7a5 2009-07-07 Carlos Alberto Cortez <[email protected]>
* PaperSize.cs: Actually implement RawKind by retrieving and setting
	the kind field.


svn path=/trunk/mcs/; revision=137481
2009-07-07 07:08:10 +00:00
Sebastien Pouliot 21287d4719 2009-01-02 Sebastien Pouliot <[email protected]>
* TestBitmap.cs: Add test cases for SetResolution


svn path=/trunk/mcs/; revision=122355
2009-01-02 21:31:04 +00:00
Sebastien Pouliot 29533acdff 2009-01-02 Sebastien Pouliot <[email protected]>
* PenTest.cs: Fix test case not to use a color that is "destroyed" 
	by another unit test. The nunit update changed the order in which 
	the test cases are executed.


svn path=/trunk/mcs/; revision=122341
2009-01-02 16:07:12 +00:00
Sebastien Pouliot e29ace8e98 2008-12-23 Sebastien Pouliot <[email protected]>
* GDIPlusTest.cs: Add MeasureCharacterRanges test cases around bug
	#449971 and add a few delta for FP comparison.
	* TestGraphics.cs: Add a few delta for FP comparison.


svn path=/trunk/mcs/; revision=122060
2008-12-23 21:11:13 +00:00
Sebastien Pouliot bf17ee5e26 2008-12-23 Sebastien Pouliot <[email protected]>
* GraphicsPathTest.cs, LinearGradientBrushTest.cs, TestMatrix.cs:
	Add delta when comparing floating point values since there can be
	small differences between different platforms.


svn path=/trunk/mcs/; revision=122052
2008-12-23 20:10:57 +00:00
Miguel de Icaza 8e07acf772 Multiple files:
Deals with the extension to Environment.OSVersion.Platform that might return a new
value MacOSX (6) on .NET
 

svn path=/trunk/mcs/; revision=121711
2008-12-17 17:56:25 +00:00
Atsushi Eno f463d48ab1 2008-12-10 Atsushi Enomoto <[email protected]>
* TestGraphics.cs, GDIPlusTest.cs : fix tests wrt rounding that
	  were failing on .NET too (exposed by nunit24).

	* LinearGradientBrushTest.cs, GraphicsPathTest.cs,
	  TestMatrix.cs : fix tests wrt rounding that were failing on .NET
	  too (exposed by nunit24).


svn path=/trunk/mcs/; revision=121182
2008-12-10 02:06:14 +00:00
Geoff Norton cf717d5b88 2008-11-24 Geoff Norton <[email protected]>
* gdipFunctions.cs: Ensure that System.Drawing works on the mac as
	well as unix.

svn path=/trunk/mcs/; revision=119827
2008-11-24 18:43:20 +00:00
Andreia Gaita 0605c47f81 * System.Drawing/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).

* System.Drawing/Bitmap.cs: Save the underlying stream when creating bitmaps from a
  clone under win32

* System.Drawing.Imaging/Metafile.cs: Save the underlying stream when creating from a
  clone under win32

  [fixes #438886]

2008-11-21  Andreia Gaita  <[email protected]>

svn path=/trunk/mcs/; revision=119580
2008-11-21 05:39:11 +00:00
Sebastien Pouliot 56a34361e0 Font.cs: Add comment on .ctor(Font,FontStyle) about the lack of null check (compatibility). Add proper (yet compatible ;-) null check to GetHeight(Graphics)
svn path=/trunk/mcs/; revision=117630
2008-11-02 00:52:45 +00:00
Sebastien Pouliot 06846be145 2008-11-01 Sebastien Pouliot <[email protected]>
* TestFont.cs: Add test cases for null checks to ensure we match
	MS behavior.


svn path=/trunk/mcs/; revision=117629
2008-11-02 00:50:18 +00:00
Sebastien Pouliot 8e543f769b 2008-11-01 Sebastien Pouliot <[email protected]>
* GraphicsPathIteratorTest.cs: New. Add some (incomplete) unit 
	tests for GraphicsPathIterator. Test cases are mostly to ensure 
	null check compatibility with MS.
	* LinearGradientBrushTest.cs: Add test case when setting null
	on properties.
	* PathGradientBrushTest.cs: Add test case when setting null
	on properties.


svn path=/trunk/mcs/; revision=117628
2008-11-02 00:48:42 +00:00
Sebastien Pouliot 07be13d622 2008-11-01 Sebastien Pouliot <[email protected]>
* GraphicsPathIterator.cs: Add proper null check that match the same
	behavior that MS has.
	* LinearGradientBrush.cs: Add comments to setter that dont do any null
	check in order to be compatible with MS. Fix InterpolationColors to 
	throw a ArgumentNullException.
	* PathGradientBrush.cs: Add comments to setter that dont do any null
	check in order to be compatible with MS.
	[Found using Gendarme CheckParametersNullityInVisibleMethodsRule]


svn path=/trunk/mcs/; revision=117627
2008-11-02 00:46:24 +00:00
Sebastien Pouliot 62a5a3ef51 normalize line endings
svn path=/trunk/mcs/; revision=117618
2008-11-01 19:23:59 +00:00
Sebastien Pouliot b24dc833fc 2008-11-01 Sebastien Pouliot <[email protected]>
* PrintingServicesUnix.cs: Fix potential crash on 64bit OS. Gendarme
	rule for checking IntPtr has been updated to cover this case as well


svn path=/trunk/mcs/; revision=117611
2008-11-01 16:34:27 +00:00
Jonathan Pryor 2505f3eeca Migrating from monodoc/class/System.Drawing to mcs/class/System.Drawing/Documentation...
svn path=/trunk/mcs/; revision=116211
2008-10-17 14:11:56 +00:00
Sebastien Pouliot 144ccc1623 2008-10-12 Sebastien Pouliot <[email protected]>
* ColorPalette.cs, ImageFormat.cs: Remove unneeded field 
	initialization to their default values.
	[Found using Gendarme AvoidUnneededFieldInitializationRule]


svn path=/trunk/mcs/; revision=115566
2008-10-12 14:52:16 +00:00
Sebastien Pouliot 6f720f0e3f 2008-10-12 Sebastien Pouliot <[email protected]>
* PaperSize.cs, PreviewPrintController.cs, PrinterSettings.cs,
	PrintingPermissionAttribute.cs, PrintingPermission.cs: Remove unneeded
	field initialization to their default values.
	[Found using Gendarme AvoidUnneededFieldInitializationRule]


svn path=/trunk/mcs/; revision=115565
2008-10-12 14:48:17 +00:00
Zoltan Varga f10ff05fc6 2008-10-08 Zoltan Varga <[email protected]>
* Makefile */Makefile build/profiles/*.make: Rename the 'default'
	profile to 'net_1_1'.

svn path=/trunk/mcs/; revision=115166
2008-10-08 05:58:51 +00:00
Sebastien Pouliot facb079bc0 2008-10-06 Sebastien Pouliot <[email protected]>
* TestColor.cs: Add test case, from Gert Driesen, for bug #410693
	* TestRectangleF.cs: Add test case, from Imie Nazwisko, for bug #431587

svn path=/trunk/mcs/; revision=114972
2008-10-06 17:16:34 +00:00
Sebastien Pouliot 6dfeaed97e 2008-10-06 Sebastien Pouliot <[email protected]>
* 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.

svn path=/trunk/mcs/; revision=114971
2008-10-06 17:13:56 +00:00
Sebastien Pouliot 9aa4eb45ae 2008-10-06 Sebastien Pouliot <[email protected]>
* TestRectangleF.cs: Add test case for bug #431587


svn path=/trunk/mcs/; revision=114954
2008-10-06 15:06:44 +00:00