Workaround libgdiplus glitches
authorFrederik Carlier <frederik.carlier@quamotion.mobi>
Wed, 20 Sep 2017 21:28:15 +0000 (23:28 +0200)
committerFrederik Carlier <frederik.carlier@quamotion.mobi>
Thu, 21 Sep 2017 22:02:22 +0000 (00:02 +0200)
commit53475341bda0daaa039965ed5a3c6209bc6847c2
tree758112215b7b3cbba52a6786e78200ba61586907
parent7d2ab2341b0a53ebf273292cdfab2e9610b30bcf
Workaround libgdiplus glitches

Don't test metafileHeader.Bounds when using libgdiplus.
Don't test metafile.GetBounds on Unix, force MetafileHeader.Bounds to return an empty rectangle when MetafileSize == 0
Don't validate graphicsUnit on Unix.

Commit migrated from https://github.com/dotnet/corefx/commit/825ef7c0d16798739f4cb69d3a4f1e924ef7ff18
src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/MetafileHeader.Unix.cs
src/libraries/System.Drawing.Common/tests/Imaging/MetafileTests.cs