bulia byak wrote:
As discussed recently, I have changed the zoom levels so that at 100%, one px unit is equal to one screen pixel. This change led to switching all internal calculations from a mix of px and pt to pure px. This simplified code in many places and got rid of lots of ugly 0.8 and 1.25 multipliers that were scattered throughout the codebase.
Hmmm....
The only question that comes to mind is wether or not the proper calculations were preserved.
:-)
That is, since the magic literals were actually representing the ratio of user units to device pixels, at some point in the future (mainly once we tweak the CSS support), we'll probably want to go ahead and support unit ratios determined by the SVG user agent at initialization time as mentioned in the SVG spec. So... did you just refactor the code to remove those values altogether, or did you replace them with a variable or #define and then set that to 1.0?