Am 17.09.2017 um 21:38 schrieb Jean-Marc Lasgouttes <lasgout...@lyx.org>:
> 
> Le 17/09/2017 à 18:42, Stephan Witt a écrit :
>> Now I made some progress. After sending the previous mail I’ve noticed
>> that LyX eats massively CPU time. The cause seems to be the missing
>> adjustment of GuiWorkArea::Private::pixel_ratio_ - that’s why the
>> GuiWorkArea::Private::needResize() returns constantly true.
> 
> Indeed, pixel_ratio_ needs to be set somewhere. Good catch. By looking at 
> 2.3.x sources, I suspect it should be set in paintEvent after the block that 
> tests for needResize().
> 
> Could you try the attached patch?

It works.

Two lines below d->pixel_ratio_ can be used then?

        GuiPainter pain(viewport(), d->pixel_ratio_);

Stephan

> 
> JMarc
> 
> 
> 
> 
> <pixelratio.diff>

Reply via email to