projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
2010-06-23 Miguel de Icaza <miguel@novell.com>
[mono.git]
/
mcs
/
class
/
Managed.Windows.Forms
/
System.Windows.Forms.RTF
/
Picture.cs
diff --git
a/mcs/class/Managed.Windows.Forms/System.Windows.Forms.RTF/Picture.cs
b/mcs/class/Managed.Windows.Forms/System.Windows.Forms.RTF/Picture.cs
index 37152e6fff520fe007c2c4655532aebce6a42bdd..244bcd9adff22a1b8dc9a771bc2e3e0c4deb472e 100644
(file)
--- a/
mcs/class/Managed.Windows.Forms/System.Windows.Forms.RTF/Picture.cs
+++ b/
mcs/class/Managed.Windows.Forms/System.Windows.Forms.RTF/Picture.cs
@@
-42,9
+42,7
@@
namespace System.Windows.Forms.RTF {
static Picture ()
{
- Bitmap b = new Bitmap (1, 1);
- Graphics g = Graphics.FromImage (b);
- dpix = g.DpiX;
+ dpix = TextRenderer.GetDpi ().Width;
}
public Picture ()