
W dniu 27 lipca 2011 18:18 użytkownik Maximilian Albert <maximilian.albert@...1439...> napisał:
2011/7/26 Krzysztof Kosiński <tweenk.pl@...400...>: When you say that this should be available from GDK, I presume you are referring to the functions gdk_screen_(width|height) and gdk_screen_(width|height)_mm? I tried a quick fix based on these which seems to work for me. However, the documentation says: "Note that on many X servers this value will not be correct." Is there something else I could use?
Yes, I was thinking about those functions.
I think the value returned is incorrect when the X server can't read the monitor's EDID, or when the EDID contains bogus values. I don't know how often this happens. To be safe, let's not remove the correction slider, but give it a default value that matches the information from GDK.
- When I use the _height functions (instead of _width) I get slightly
different correction factors. Should we thus have different scaling factors horizontally and vertically?
I'm not sure about this. This would mean that the monitor's pixels are not square.
Regards, Krzysztof