Re: [PATCH] BUGFIX for dpi calculation

2025-05-05 Thread Ihor Radchenko
Karthik Chikmagalur writes: >> Not all the monitors have scaling field. Your patch should account for >> that. > > For your reference, here's org-latex-preview--get-display-dpi, the > replacement for org--get-display-dpi in the upcoming org-latex-preview. > ... Your version suffers from the same

Re: [PATCH] BUGFIX for dpi calculation

2025-05-04 Thread Karthik Chikmagalur
>> The patch retrieves its data from `display-monitor-attributes-list` >> which seems more consistent than the previously used functions, albeit >> having more overhead (parsing is to be done). It also accounts for the >> scaling field provided by the aforementioned function. > > Not all the monito

Re: [PATCH] BUGFIX for dpi calculation

2025-05-03 Thread Ihor Radchenko
William Brusa writes: > TL;DR: `org--get-display-dpi` calculated the dpi with data from different > monitors, i fixed it and now it returns the highest correct dpi. > ... it computed the dpi using `display-pixel-height` and > `display-mm-height`. > > The problem is that one returns the pixel-hei

[PATCH] BUGFIX for dpi calculation

2025-05-02 Thread William Brusa
Hello, TL;DR: `org--get-display-dpi` calculated the dpi with data from different monitors, i fixed it and now it returns the highest correct dpi. I noticed that when I connected my laptop to a new monitor the latex fragment scaling changed. So I looked under `org-create-formula-image` (org.el)