April 15, 2026
5:32 p.m.
On Wed Apr 15 09:57:37 2026 +0000, Rémi Bernon wrote:
Where does that value come from? "himetric" is defined as "1/100th of a milimeter", since dpis are per inch, 1 inch makes 25.4mm, mm * 100 / dpi to get himetric-units-per-dot
note that we have the same definition in two other places already: ``` dlls/gdiplus/gdiplus_private.h:#define INCH_HIMETRIC (2540) dlls/ole32/ole32_main.c:#define HIMETRIC_INCHES 2540 dlls/win32u/input.c:#define HIMETRIC 2540 ``` so it might be good to just merge them all in a header (unsure which) -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10649#note_136332