[Webkit-unassigned] [Bug 80032] [GTK] Move the code to get the screen DPI to WebCore
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Mar 1 09:57:11 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=80032
Martin Robinson <mrobinson at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #129715|review? |review+
Flag| |
--- Comment #5 from Martin Robinson <mrobinson at webkit.org> 2012-03-01 09:57:11 PST ---
(From update of attachment 129715)
View in context: https://bugs.webkit.org/attachment.cgi?id=129715&action=review
> Source/WebCore/platform/gtk/GtkUtilities.cpp:65
> + static const double kMillimetresPerInch = 25.4;
> + double diagonalSizeInPixels = hypot(gdk_screen_get_width(screen), gdk_screen_get_height(screen));
> + double diagonalSizeInInches = hypot(gdk_screen_get_width_mm(screen), gdk_screen_get_height_mm(screen)) / kMillimetresPerInch;
> + return diagonalSizeInPixels / diagonalSizeInInches;
I like the way you're falling back here.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list