Author: toshok
Date: 2007-01-04 01:28:08 -0500 (Thu, 04 Jan 2007)
New Revision: 70452
Modified:
trunk/libgdiplus/src/general.c
Log:
revert my last patch. we'll deal with the fallout another way
Modified: trunk/libgdiplus/src/general.c
===================================================================
--- trunk/libgdiplus/src/general.c 2007-01-04 04:16:26 UTC (rev 70451)
+++ trunk/libgdiplus/src/general.c 2007-01-04 06:28:08 UTC (rev 70452)
@@ -222,8 +222,12 @@
display = XOpenDisplay (0);
/* If the display is openable lets try to read dpi from it;
otherwise use a default of 96.0f */
if (display) {
- dpis = (((float) DisplayHeight (display, 0) * 25.4f) /
- (float) DisplayHeightMM (display, 0));
+ val = XGetDefault (display, "Xft", "dpi");
+ if (val) {
+ dpis = atof (val);
+ } else {
+ dpis = 96.0f;
+ }
XCloseDisplay (display);
} else {
dpis = 96.0f;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches