On Mon, Jul 14, 2014 at 8:01 PM, Jean-Marc Lasgouttes <lasgout...@lyx.org> wrote: > Le 14/07/14 22:44, Marcelo Galvão Póvoa a écrit : > >> I worked on a patch which adds basic 2x DPI drawing support for text >> and graphics. Math formulas and inline images also work (except the >> splash screen) but the UI icons would require creating higher res >> versions. > > > This is excellent work. I am surprised that so many parts of the code need > to be changed, the way the blog entry is written made me think that the > changes could be smaller. >
Thanks. I tried to change the least amount of code but maybe someone can suggest how to simplify my approach. > Do we really want to add a lyxrc variable for this, though? I would think > that Retina macs can automatically know that they need the x2 multiplier. > > There seems to be some code related to that here: > http://stackoverflow.com/questions/16527971/detect-hidpi-mode > HiDPI detection is already automatic (that's why the variable is not read from preferences file), but I need to have some global parameter for easy access throughout the code. > >> Qt added HiDPI support in version 5 [2], but I think it's not yet >> fully functional. > > > I think that part of this is backported to recent 4.8 versions too. It would > be nice to see what 4.8 version can work correctly. > Yes, I found a forked version of Qt 4 but I don't know if it's reliable (they call it a hack): https://github.com/msorvig/qt4-hidpi/ Marcelo