org: Calculate dpi directly.
commitd34b804a6fbb694a7b5d83313751c240d01aee0e
authorAaron Ecay <aaronecay@gmail.com>
Mon, 19 Jan 2015 05:19:27 +0000 (19 00:19 -0500)
committerAaron Ecay <aaronecay@gmail.com>
Mon, 19 Jan 2015 05:34:56 +0000 (19 00:34 -0500)
tree1072c8c0f55db8bc3e0c1db57dd3d427c4941809
parent05ac7b37a4ab03250841edaae3e52f3f24f00ba3
org: Calculate dpi directly.

* lisp/org.el (org--get-display-dpi): New function.
(org-create-formula-image-with-dvipng):
(org-create-formula-image-with-imagemagick): Use it.

The previous method tried to calculate the display dpi from the font
height, but this is wonky and not necessary, since it can be
calculated directly.
lisp/org.el